Browse Source

Appease some verbose GCC warnings.

svn:r5679
Nick Mathewson 18 years ago
parent
commit
fc850273bd
2 changed files with 2 additions and 2 deletions
  1. 1 1
      src/or/rephist.c
  2. 1 1
      src/or/routerlist.c

+ 1 - 1
src/or/rephist.c

@@ -586,7 +586,7 @@ rep_hist_bandwidth_assess(void)
  *
  * 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)
 {
   char *cp = buf;

+ 1 - 1
src/or/routerlist.c

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