summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2003-03-19 20:54:39 +0000
committerNick Mathewson <nickm@torproject.org>2003-03-19 20:54:39 +0000
commit2b2eff33c5ac1b8b22671e8d0f999ae89155f723 (patch)
treea7ed384c464f74d2b2e7009ef1767aa185a75d7f /src
parent0fed84785eeacef4b7374d09a1d943e411a8a5b4 (diff)
downloadtor-2b2eff33c5ac1b8b22671e8d0f999ae89155f723.tar.gz
tor-2b2eff33c5ac1b8b22671e8d0f999ae89155f723.zip
Add a missing long cast to log.c for portability
svn:r199
Diffstat (limited to 'src')
-rw-r--r--src/common/log.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/log.c b/src/common/log.c
index 018028de3f..3039951204 100644
--- a/src/common/log.c
+++ b/src/common/log.c
@@ -62,7 +62,7 @@ void log(int severity, const char *format, ...)
{
t = time(NULL);
strftime(buf, 200, "%b %d %H:%M:%S", localtime(&t));
- printf("%s.%.3ld ", buf, now.tv_usec / 1000);
+ printf("%s.%.3ld ", buf, (long)now.tv_usec / 1000);
sev_to_string(buf, 200, severity);
printf("[%s] ", buf);
vprintf(format,ap);