aboutsummaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
Diffstat (limited to 'src/common')
-rw-r--r--src/common/log.c2
-rw-r--r--src/common/util.c9
2 files changed, 1 insertions, 10 deletions
diff --git a/src/common/log.c b/src/common/log.c
index 2feb075c0..81a709157 100644
--- a/src/common/log.c
+++ b/src/common/log.c
@@ -3,10 +3,8 @@
/* $Id$ */
#include "../or/or.h"
-#include "util.h"
struct logfile_t;
-
typedef struct logfile_t {
struct logfile_t *next;
const char *filename;
diff --git a/src/common/util.c b/src/common/util.c
index 8c3c6eab6..c2ca39f0c 100644
--- a/src/common/util.c
+++ b/src/common/util.c
@@ -4,14 +4,6 @@
#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
#include <sys/utsname.h>
#endif
@@ -29,6 +21,7 @@ void *tor_malloc(size_t size) {
log_fn(LOG_ERR, "Out of memory. Dying.");
exit(1);
}
+ memset(result,'X',size); /* XXX deadbeef to encourage bugs */
return result;
}