[or-cvs] put a comment by routerlist_update_from_runningrouters() to

Roger Dingledine arma at seul.org
Wed Aug 4 01:25:23 UTC 2004


Update of /home/or/cvsroot/src/or
In directory moria.mit.edu:/home2/arma/work/onion/cvs/src/or

Modified Files:
	routerlist.c 
Log Message:
put a comment by routerlist_update_from_runningrouters() to
remind me that it's not used yet


Index: routerlist.c
===================================================================
RCS file: /home/or/cvsroot/src/or/routerlist.c,v
retrieving revision 1.111
retrieving revision 1.112
diff -u -d -r1.111 -r1.112
--- routerlist.c	22 Jul 2004 23:21:12 -0000	1.111
+++ routerlist.c	4 Aug 2004 01:25:21 -0000	1.112
@@ -782,7 +782,7 @@
     == ADDR_POLICY_REJECTED;
 }
 
-/* Release all space held in <b>rr</b>. */
+/** Release all space held in <b>rr</b>. */
 void running_routers_free(running_routers_t *rr)
 {
   tor_assert(rr);
@@ -793,8 +793,10 @@
   tor_free(rr);
 }
 
-/* Update the running/not-running status of every router in <b>list</b>, based
+/** Update the running/not-running status of every router in <b>list</b>, based
  * on the contents of <b>rr</b>. */
+/* Note: this function is not yet used, since nobody publishes just
+ * running-router lists yet. */
 void routerlist_update_from_runningrouters(routerlist_t *list,
                                            running_routers_t *rr)
 {
@@ -807,10 +809,11 @@
   if (list->running_routers_updated_on >= rr->published_on)
     return;
 
-  if(me) /* learn if the dirservers think I'm verified */
+  if(me) { /* learn if the dirservers think I'm verified */
     router_update_status_from_smartlist(me,
                                         rr->published_on,
                                         rr->running_routers);
+  }
   n_routers = smartlist_len(list->routers);
   for (i=0; i<n_routers; ++i) {
     router = smartlist_get(list->routers, i);



More information about the tor-commits mailing list