Appease some verbose GCC warnings.

svn:r5679
This commit is contained in:
Nick Mathewson 2005-12-29 20:25:53 +00:00
parent 2904c6f024
commit fc850273bd
2 changed files with 2 additions and 2 deletions

View File

@ -586,7 +586,7 @@ rep_hist_bandwidth_assess(void)
* *
* It returns the number of bytes written. * It returns the number of bytes written.
*/ */
size_t static size_t
rep_hist_fill_bandwidth_history(char *buf, size_t len, bw_array_t *b) rep_hist_fill_bandwidth_history(char *buf, size_t len, bw_array_t *b)
{ {
char *cp = buf; char *cp = buf;

View File

@ -3443,11 +3443,11 @@ update_router_descriptor_cache_downloads(time_t now)
networkstatus_t *ns = smartlist_get(networkstatus_list, i); networkstatus_t *ns = smartlist_get(networkstatus_list, i);
trusted_dir_server_t *ds = trusted_dir_server_t *ds =
router_get_trusteddirserver_by_digest(ns->identity_digest); router_get_trusteddirserver_by_digest(ns->identity_digest);
smartlist_t *dl = download_from[i];
if (!ds) { if (!ds) {
warn(LD_BUG, "Networkstatus with no corresponding authority!"); warn(LD_BUG, "Networkstatus with no corresponding authority!");
continue; continue;
} }
smartlist_t *dl = download_from[i];
if (! smartlist_len(dl)) if (! smartlist_len(dl))
continue; continue;
info(LD_DIR, "Requesting %d descriptors from authority \"%s\"", info(LD_DIR, "Requesting %d descriptors from authority \"%s\"",