diff options
author | Roger Dingledine <arma@torproject.org> | 2004-04-17 06:34:20 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2004-04-17 06:34:20 +0000 |
commit | 01e594e512a6599b670cb5c300b43d0ee0923ebc (patch) | |
tree | af9f4417add951efce575dffb13665c5d8213f2b /src/or | |
parent | e72f58422885cd864f02825a29626fa43a5666ae (diff) | |
download | tor-01e594e512a6599b670cb5c300b43d0ee0923ebc.tar.gz tor-01e594e512a6599b670cb5c300b43d0ee0923ebc.zip |
clean up some warnings
svn:r1651
Diffstat (limited to 'src/or')
-rw-r--r-- | src/or/main.c | 12 | ||||
-rw-r--r-- | src/or/onion.c | 1 |
2 files changed, 7 insertions, 6 deletions
diff --git a/src/or/main.c b/src/or/main.c index 6e8064399a..c80737bf56 100644 --- a/src/or/main.c +++ b/src/or/main.c @@ -678,16 +678,16 @@ static void dumpstats(int severity) { for(i=0;i<nfds;i++) { conn = connection_array[i]; - log(severity, "Conn %d (socket %d) type %d (%s), state %d (%s), created %ld secs ago", + log(severity, "Conn %d (socket %d) type %d (%s), state %d (%s), created %d secs ago", i, conn->s, conn->type, CONN_TYPE_TO_STRING(conn->type), - conn->state, conn_state_to_string[conn->type][conn->state], now - conn->timestamp_created); + conn->state, conn_state_to_string[conn->type][conn->state], (int)(now - conn->timestamp_created)); if(!connection_is_listener(conn)) { log(severity,"Conn %d is to '%s:%d'.",i,conn->address, conn->port); - log(severity,"Conn %d: %d bytes waiting on inbuf (last read %ld secs ago)",i, + log(severity,"Conn %d: %d bytes waiting on inbuf (last read %d secs ago)",i, (int)buf_datalen(conn->inbuf), - now - conn->timestamp_lastread); - log(severity,"Conn %d: %d bytes waiting on outbuf (last written %ld secs ago)",i, - (int)buf_datalen(conn->outbuf), now - conn->timestamp_lastwritten); + (int)(now - conn->timestamp_lastread)); + log(severity,"Conn %d: %d bytes waiting on outbuf (last written %d secs ago)",i, + (int)buf_datalen(conn->outbuf), (int)(now - conn->timestamp_lastwritten)); } circuit_dump_by_conn(conn, severity); /* dump info about all the circuits using this conn */ } diff --git a/src/or/onion.c b/src/or/onion.c index aa93d81b79..8939a3d2e3 100644 --- a/src/or/onion.c +++ b/src/or/onion.c @@ -363,6 +363,7 @@ static routerinfo_t *choose_good_exit_server(uint8_t purpose, routerlist_t *dir) log_fn(LOG_WARN,"unhandled purpose %d", purpose); assert(0); } + return NULL; /* never reached */ } cpath_build_state_t *onion_new_cpath_build_state(uint8_t purpose, |