[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] clean some includes
Update of /home/or/cvsroot/src/common
In directory moria.mit.edu:/home2/arma/work/onion/cvs/src/common
Modified Files:
log.c util.c
Log Message:
clean some includes
Index: log.c
===================================================================
RCS file: /home/or/cvsroot/src/common/log.c,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -d -r1.18 -r1.19
--- log.c 1 Oct 2003 00:42:24 -0000 1.18
+++ log.c 4 Oct 2003 01:36:11 -0000 1.19
@@ -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;
Index: util.c
===================================================================
RCS file: /home/or/cvsroot/src/common/util.c,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -d -r1.24 -r1.25
--- util.c 1 Oct 2003 22:31:12 -0000 1.24
+++ util.c 4 Oct 2003 01:36:11 -0000 1.25
@@ -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 @@
log_fn(LOG_ERR, "Out of memory. Dying.");
exit(1);
}
+ memset(result,'X',size); /* XXX deadbeef to encourage bugs */
return result;
}