Loading src/common/log.c +0 −2 Original line number Diff line number Diff line Loading @@ -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; Loading src/common/util.c +1 −8 Original line number Diff line number Diff line Loading @@ -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 Loading @@ -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; } Loading Loading
src/common/log.c +0 −2 Original line number Diff line number Diff line Loading @@ -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; Loading
src/common/util.c +1 −8 Original line number Diff line number Diff line Loading @@ -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 Loading @@ -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; } Loading