[or-cvs] Appease some verbose GCC warnings.

Nick Mathewson nickm at seul.org
Thu Dec 29 20:25:56 UTC 2005


Update of /home/or/cvsroot/tor/src/or
In directory moria:/tmp/cvs-serv11258/src/or

Modified Files:
	rephist.c routerlist.c 
Log Message:
Appease some verbose GCC warnings.

Index: rephist.c
===================================================================
RCS file: /home/or/cvsroot/tor/src/or/rephist.c,v
retrieving revision 1.75
retrieving revision 1.76
diff -u -p -d -r1.75 -r1.76
--- rephist.c	24 Dec 2005 22:48:12 -0000	1.75
+++ rephist.c	29 Dec 2005 20:25:53 -0000	1.76
@@ -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: routerlist.c
===================================================================
RCS file: /home/or/cvsroot/tor/src/or/routerlist.c,v
retrieving revision 1.407
retrieving revision 1.408
diff -u -p -d -r1.407 -r1.408
--- routerlist.c	28 Dec 2005 09:07:31 -0000	1.407
+++ routerlist.c	29 Dec 2005 20:25:53 -0000	1.408
@@ -3443,11 +3443,11 @@ update_router_descriptor_cache_downloads
     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\"",



More information about the tor-commits mailing list