mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-24 14:51:11 +01:00
clean some includes
svn:r535
This commit is contained in:
parent
22526c62a5
commit
750b238aea
2 changed files with 1 additions and 10 deletions
|
@ -3,10 +3,8 @@
|
||||||
/* $Id$ */
|
/* $Id$ */
|
||||||
|
|
||||||
#include "../or/or.h"
|
#include "../or/or.h"
|
||||||
#include "util.h"
|
|
||||||
|
|
||||||
struct logfile_t;
|
struct logfile_t;
|
||||||
|
|
||||||
typedef struct logfile_t {
|
typedef struct logfile_t {
|
||||||
struct logfile_t *next;
|
struct logfile_t *next;
|
||||||
const char *filename;
|
const char *filename;
|
||||||
|
|
|
@ -4,14 +4,6 @@
|
||||||
|
|
||||||
#include "../or/or.h"
|
#include "../or/or.h"
|
||||||
|
|
||||||
#ifdef MS_WINDOWS
|
|
||||||
#include <io.h>
|
|
||||||
#include <limits.h>
|
|
||||||
#include <process.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "util.h"
|
|
||||||
#include "log.h"
|
|
||||||
#ifdef HAVE_UNAME
|
#ifdef HAVE_UNAME
|
||||||
#include <sys/utsname.h>
|
#include <sys/utsname.h>
|
||||||
#endif
|
#endif
|
||||||
|
@ -29,6 +21,7 @@ void *tor_malloc(size_t size) {
|
||||||
log_fn(LOG_ERR, "Out of memory. Dying.");
|
log_fn(LOG_ERR, "Out of memory. Dying.");
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
memset(result,'X',size); /* XXX deadbeef to encourage bugs */
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue