summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2005-10-05 04:52:55 +0000
committerRoger Dingledine <arma@torproject.org>2005-10-05 04:52:55 +0000
commitadf04f121e17b4eef14a2e66b8bc960cb66fa828 (patch)
treef7ba3c930c142c1a5621f413e0688b15c96b7af9
parent96c47c84781df94c8f8102094e8c028531921897 (diff)
downloadtor-adf04f121e17b4eef14a2e66b8bc960cb66fa828.tar.gz
tor-adf04f121e17b4eef14a2e66b8bc960cb66fa828.zip
size_t int printf mucking
svn:r5194
-rw-r--r--src/or/directory.c2
-rw-r--r--src/or/main.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/or/directory.c b/src/or/directory.c
index 86e850c1a8..729bd86a8d 100644
--- a/src/or/directory.c
+++ b/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);
diff --git a/src/or/main.c b/src/or/main.c
index ad55d9c483..f5b1d3fc26 100644
--- a/src/or/main.c
+++ b/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;