diff options
author | Nick Mathewson <nickm@torproject.org> | 2003-08-12 03:08:41 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2003-08-12 03:08:41 +0000 |
commit | c336c99e609b2918ca664bc1fdbfb916a6811508 (patch) | |
tree | ff04c4774b60cef2dce98d88497ac5ac4a3cb8e7 /src/common/log.c | |
parent | 5126f203f23773f64b51e5c0c7b7e1d702f26ca9 (diff) | |
download | tor-c336c99e609b2918ca664bc1fdbfb916a6811508.tar.gz tor-c336c99e609b2918ca664bc1fdbfb916a6811508.zip |
Start of port to win32. Missing are:
- signal support
- forking for DNS farm
- changes for async IO
- daemonizing
In other words, some files still don't build, and the ones that do build,
do nonblocking IO incorrectly.
I'm also not checking in the project files till I have a good place
for them.
svn:r380
Diffstat (limited to 'src/common/log.c')
-rw-r--r-- | src/common/log.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/log.c b/src/common/log.c index 75a0643997..8245bd4f5b 100644 --- a/src/common/log.c +++ b/src/common/log.c @@ -3,6 +3,7 @@ /* $Id$ */ #include "../or/or.h" +#include "util.h" static const char *sev_to_string(int severity) { switch(severity) { @@ -30,8 +31,7 @@ logv(int severity, const char *funcname, const char *format, va_list ap) assert(format); if (severity > loglevel) return; - if (gettimeofday(&now,NULL) < 0) - return; + my_gettimeofday(&now); t = time(NULL); strftime(buf, 200, "%b %d %H:%M:%S", localtime(&t)); |