summaryrefslogtreecommitdiff
path: root/src/common/util.h
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2003-10-07 16:30:05 +0000
committerRoger Dingledine <arma@torproject.org>2003-10-07 16:30:05 +0000
commitde6cbe53c0caaf09e6e870b50463fa3ad37dfd6f (patch)
tree0a67bb89726ce6020cac92b9edf7963180373359 /src/common/util.h
parente826873ac657782fde5e635d75de5443ac27fed4 (diff)
downloadtor-de6cbe53c0caaf09e6e870b50463fa3ad37dfd6f.tar.gz
tor-de6cbe53c0caaf09e6e870b50463fa3ad37dfd6f.zip
some early bugfixes
our log() conflicts with log(3) distribute only the correct files from doc/ and src/config/ sometimes laptops go back in time. i guess that's ok for now. and bump the version number because we're live. svn:r544
Diffstat (limited to 'src/common/util.h')
-rw-r--r--src/common/util.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/common/util.h b/src/common/util.h
index 40e35d9629..358134bedf 100644
--- a/src/common/util.h
+++ b/src/common/util.h
@@ -32,6 +32,7 @@
#define INLINE inline
#endif
+#define xfree(p) do {if(p) {free(p); (p)=NULL;}} while(0) /* XXX use everywhere? */
void *tor_malloc(size_t size);
char *tor_strdup(const char *s);
void tor_gettimeofday(struct timeval *timeval);