[or-cvs] resolve a 64-bit warning

Roger Dingledine arma at seul.org
Tue Nov 9 11:36:40 UTC 2004


Update of /home/or/cvsroot/src/or
In directory moria.mit.edu:/home2/arma/work/onion/cvs/src/or

Modified Files:
	routerlist.c 
Log Message:
resolve a 64-bit warning


Index: routerlist.c
===================================================================
RCS file: /home/or/cvsroot/src/or/routerlist.c,v
retrieving revision 1.179
retrieving revision 1.180
diff -u -d -r1.179 -r1.180
--- routerlist.c	9 Nov 2004 07:05:53 -0000	1.179
+++ routerlist.c	9 Nov 2004 11:36:38 -0000	1.180
@@ -1105,7 +1105,7 @@
     /* 'end' now points on character beyond the end of the nickname */
     if (end == cp || end-cp > MAX_NICKNAME_LEN) {
       log_fn(LOG_WARN, "Bad nickname length (%d) in router status entry (%s)",
-             end-cp, s);
+             (int)(end-cp), s);
       return -1;
     }
     memcpy(nickname, cp, end-cp);



More information about the tor-commits mailing list