[or-cvs] size_t int printf mucking

arma at seul.org arma at seul.org
Wed Oct 5 04:52:58 UTC 2005


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

Modified Files:
	directory.c main.c 
Log Message:
size_t int printf mucking


Index: directory.c
===================================================================
RCS file: /home2/or/cvsroot/tor/src/or/directory.c,v
retrieving revision 1.301
retrieving revision 1.302
diff -u -d -r1.301 -r1.302
--- directory.c	5 Oct 2005 01:27:08 -0000	1.301
+++ directory.c	5 Oct 2005 04:52:55 -0000	1.302
@@ -1120,7 +1120,7 @@
     if (conn->purpose == DIR_PURPOSE_FETCH_SERVERDESC &&
         buf_datalen(conn->inbuf)>=(24*1024)) {
       log_fn(LOG_NOTICE, "Directory connection closed early after downloading %d bytes of descriptors.  If this happens often, please file a bug report.",
-             buf_datalen(conn->inbuf));
+             (int)buf_datalen(conn->inbuf));
     }
     connection_close_immediate(conn); /* it was an error; give up on flushing */
     connection_mark_for_close(conn);

Index: main.c
===================================================================
RCS file: /home2/or/cvsroot/tor/src/or/main.c,v
retrieving revision 1.570
retrieving revision 1.571
diff -u -d -r1.570 -r1.571
--- main.c	5 Oct 2005 02:25:59 -0000	1.570
+++ main.c	5 Oct 2005 04:52:55 -0000	1.571
@@ -580,7 +580,7 @@
     if (conn->purpose == DIR_PURPOSE_FETCH_SERVERDESC &&
         buf_datalen(conn->inbuf)>=(24*1024)) {
       log_fn(LOG_NOTICE, "Expired a wedged directory connection that had already downloaded %d bytes of descriptors.  If this happens often, please file a bug report.",
-             buf_datalen(conn->inbuf));
+             (int)buf_datalen(conn->inbuf));
     }
     connection_mark_for_close(conn);
     return;



More information about the tor-commits mailing list