[or-cvs] Fix compiler warning on 64 bit archs

Peter Palfrader weasel at seul.org
Fri Feb 3 22:26:46 UTC 2006


Update of /home/or/cvsroot/tor/src/or
In directory moria:/tmp/cvs-serv26272

Modified Files:
	directory.c 
Log Message:
Fix compiler warning on 64 bit archs

Index: directory.c
===================================================================
RCS file: /home/or/cvsroot/tor/src/or/directory.c,v
retrieving revision 1.345
retrieving revision 1.346
diff -u -p -d -r1.345 -r1.346
--- directory.c	3 Feb 2006 15:17:48 -0000	1.345
+++ directory.c	3 Feb 2006 22:26:43 -0000	1.346
@@ -581,7 +581,7 @@ directory_send_command(connection_t *con
   }
 
   if (strlen(proxystring) + strlen(url) >= 4096) {
-    warn(LD_BUG,"Bug: squid does not like URLs longer than 4095 bytes, this one is %d bytes long: %s%s", strlen(proxystring) + strlen(url), proxystring, url);
+    warn(LD_BUG,"Bug: squid does not like URLs longer than 4095 bytes, this one is %d bytes long: %s%s", (int)(strlen(proxystring) + strlen(url)), proxystring, url);
   }
 
   tor_snprintf(request, sizeof(request), "%s %s", httpcommand, proxystring);



More information about the tor-commits mailing list