diff options
author | Nick Mathewson <nickm@torproject.org> | 2006-08-11 07:09:17 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2006-08-11 07:09:17 +0000 |
commit | 09a895e222f446d400337a3b65b8563705364ec0 (patch) | |
tree | 28329a7eeb802fe270e7a3bde2aaf26ff0de2f3d /src/or/dirserv.c | |
parent | b07525d316c6121d86bb8fa9664326f9b160604c (diff) | |
download | tor-09a895e222f446d400337a3b65b8563705364ec0.tar.gz tor-09a895e222f446d400337a3b65b8563705364ec0.zip |
r7324@Kushana: nickm | 2006-08-10 23:23:15 -0700
Add more warnings to the list of those we tolerate. Start using GCC attributes more, for better error checking and better code generation.
svn:r7020
Diffstat (limited to 'src/or/dirserv.c')
-rw-r--r-- | src/or/dirserv.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/or/dirserv.c b/src/or/dirserv.c index 6a07d3ca54..ea8a0b512e 100644 --- a/src/or/dirserv.c +++ b/src/or/dirserv.c @@ -455,6 +455,7 @@ authdir_wants_to_reject_router(routerinfo_t *ri, const char **msg, case FP_INVALID: ri->is_named = ri->is_valid = 0; break; + case FP_REJECT: default: tor_assert(0); } @@ -1977,8 +1978,7 @@ connection_dirserv_flushed_some(dir_connection_t *conn) { tor_assert(conn->_base.state == DIR_CONN_STATE_SERVER_WRITING); - if (conn->dir_spool_src == DIR_SPOOL_NONE - || buf_datalen(conn->_base.outbuf) >= DIRSERV_BUFFER_MIN) + if (buf_datalen(conn->_base.outbuf) >= DIRSERV_BUFFER_MIN) return 0; switch (conn->dir_spool_src) { @@ -1989,6 +1989,7 @@ connection_dirserv_flushed_some(dir_connection_t *conn) return connection_dirserv_add_dir_bytes_to_outbuf(conn); case DIR_SPOOL_NETWORKSTATUS: return connection_dirserv_add_networkstatus_bytes_to_outbuf(conn); + case DIR_SPOOL_NONE: default: return 0; } |