commit 4195993aa3e15ebfc895299d5b8342971067ec12 Author: Zack Weinberg zackw@cmu.edu Date: Thu May 3 10:40:21 2012 -0700
More size_t values must be cast to unsigned long --- src/network.cc | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/network.cc b/src/network.cc index 6039df0..f436ef4 100644 --- a/src/network.cc +++ b/src/network.cc @@ -378,10 +378,10 @@ downstream_event_cb(struct bufferevent *bev, short what, void *arg) { conn_t *conn = (conn_t *)arg;
- log_debug(conn, "what=%04hx enabled=%x inbound=%ld outbound=%ld", + log_debug(conn, "what=%04hx enabled=%x inbound=%lu outbound=%lu", what, bufferevent_get_enabled(bev), - evbuffer_get_length(bufferevent_get_input(bev)), - evbuffer_get_length(bufferevent_get_output(bev))); + (unsigned long)evbuffer_get_length(bufferevent_get_input(bev)), + (unsigned long)evbuffer_get_length(bufferevent_get_output(bev)));
if (what & (BEV_EVENT_ERROR|BEV_EVENT_EOF|BEV_EVENT_TIMEOUT)) { if (what & BEV_EVENT_ERROR)
tor-commits@lists.torproject.org