]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Add a missing long cast to log.c for portability
authorNick Mathewson <nickm@torproject.org>
Wed, 19 Mar 2003 20:54:39 +0000 (20:54 +0000)
committerNick Mathewson <nickm@torproject.org>
Wed, 19 Mar 2003 20:54:39 +0000 (20:54 +0000)
svn:r199

src/common/log.c

index 018028de3fa0f7c6fd6c45ca4824806b510eb671..3039951204367795cc8af88f6528437aeb5822d4 100644 (file)
@@ -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);