]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Appease some verbose GCC warnings.
authorNick Mathewson <nickm@torproject.org>
Thu, 29 Dec 2005 20:25:53 +0000 (20:25 +0000)
committerNick Mathewson <nickm@torproject.org>
Thu, 29 Dec 2005 20:25:53 +0000 (20:25 +0000)
svn:r5679

src/or/rephist.c
src/or/routerlist.c

index 2bb19d557c7e20ab4cd5c2096f05837b83fcfbfb..5b38fa60c57f8f6010f2b8a74d24ed12e499b8ea 100644 (file)
@@ -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;
index 817c95e1fe3d6db292e5cde02280b2b035a2160d..f78b7476375aa3590fd205a867ce2430ffa3aefa 100644 (file)
@@ -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\"",