From: Nick Mathewson Date: Wed, 19 Mar 2003 20:54:39 +0000 (+0000) Subject: Add a missing long cast to log.c for portability X-Git-Tag: tor-0.0.2pre8~269 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2b2eff33c5ac1b8b22671e8d0f999ae89155f723;p=thirdparty%2Ftor.git Add a missing long cast to log.c for portability svn:r199 --- 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);