From 06afb8328a9d1c1016d413669842e5888846b5d1 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Wed, 19 Mar 2003 20:54:39 +0000 Subject: [PATCH] Add a missing long cast to log.c for portability svn:r199 --- trunk/src/common/log.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trunk/src/common/log.c b/trunk/src/common/log.c index 018028de3f..3039951204 100644 --- a/trunk/src/common/log.c +++ b/trunk/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);