[or-cvs] Add a missing long cast to log.c for portability

Nick Mathewson nickm at seul.org
Wed Mar 19 20:54:41 UTC 2003


Update of /home/or/cvsroot/src/common
In directory moria.mit.edu:/tmp/cvs-serv24290/src/common

Modified Files:
	log.c 
Log Message:
Add a missing long cast to log.c for portability

Index: log.c
===================================================================
RCS file: /home/or/cvsroot/src/common/log.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- log.c	24 Nov 2002 08:45:13 -0000	1.4
+++ log.c	19 Mar 2003 20:54:39 -0000	1.5
@@ -62,7 +62,7 @@
     {
       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);



More information about the tor-commits mailing list