summaryrefslogtreecommitdiff
path: root/src/common/log.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2004-03-09 22:01:17 +0000
committerNick Mathewson <nickm@torproject.org>2004-03-09 22:01:17 +0000
commit2da54de9682716729154872ffc7946fbca1d6391 (patch)
tree8630c271e2420ebf15eb3e2b9dc81c080adef846 /src/common/log.c
parent30969421d3f6389fa985ae997c3a0969b3bfaf29 (diff)
downloadtor-2da54de9682716729154872ffc7946fbca1d6391.tar.gz
tor-2da54de9682716729154872ffc7946fbca1d6391.zip
Make tor build on windows again. More work still needed
svn:r1247
Diffstat (limited to 'src/common/log.c')
-rw-r--r--src/common/log.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/common/log.c b/src/common/log.c
index 947029079a..77e53449fe 100644
--- a/src/common/log.c
+++ b/src/common/log.c
@@ -3,6 +3,9 @@
/* $Id$ */
#include "../or/or.h"
+#ifdef MS_WINDOWS
+#define vsnprintf _vsnprintf
+#endif
struct logfile_t;
typedef struct logfile_t {
@@ -35,7 +38,7 @@ static INLINE void format_msg(char *buf, size_t buf_len,
{
time_t t;
struct timeval now;
- int n;
+ size_t n;
buf_len -= 2; /* subtract 2 characters so we have room for \n\0 */