Prechádzať zdrojové kódy

size_t int printf mucking

svn:r5194
Roger Dingledine 20 rokov pred
rodič
commit
adf04f121e
2 zmenil súbory, kde vykonal 2 pridanie a 2 odobranie
  1. 1 1
      src/or/directory.c
  2. 1 1
      src/or/main.c

+ 1 - 1
src/or/directory.c

@@ -1120,7 +1120,7 @@ connection_dir_reached_eof(connection_t *conn)
     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);

+ 1 - 1
src/or/main.c

@@ -580,7 +580,7 @@ run_connection_housekeeping(int i, time_t now)
     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;