[or-cvs] a bit of cleanup

arma at seul.org arma at seul.org
Tue Aug 30 06:01:15 UTC 2005


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

Modified Files:
	dirserv.c 
Log Message:
a bit of cleanup


Index: dirserv.c
===================================================================
RCS file: /home2/or/cvsroot/tor/src/or/dirserv.c,v
retrieving revision 1.198
retrieving revision 1.199
diff -u -d -r1.198 -r1.199
--- dirserv.c	29 Aug 2005 18:42:36 -0000	1.198
+++ dirserv.c	30 Aug 2005 06:01:13 -0000	1.199
@@ -453,28 +453,6 @@
     runningrouters_is_dirty = now;
 }
 
-#if 0
-/** Load all descriptors from a directory stored in the string
- * <b>dir</b>.
- */
-int
-dirserv_load_from_directory_string(const char *dir)
-{
-  const char *cp = dir, *m;
-  while (1) {
-    cp = strstr(cp, "\nrouter ");
-    if (!cp) break;
-    ++cp;
-    if (dirserv_add_descriptor(&cp,&m) < -1) {
-      /* only fail if parsing failed; keep going if simply rejected */
-      return -1;
-    }
-    --cp; /*Back up to newline.*/
-  }
-  return 0;
-}
-#endif
-
 /**
  * Allocate and return a description of the status of the server <b>desc</b>,
  * for use in a router-status line.  The server is listed
@@ -1183,9 +1161,9 @@
 }
 
 /** Look for a network status object as specified by <b>key</b>, which should
- * be eiher "authority" (to find a network status generated by us), a hex
+ * be either "authority" (to find a network status generated by us), a hex
  * identity digest (to find a network status generated by given directory), or
- * "all" (to return all the v2 network status objects we have, concatenated.
+ * "all" (to return all the v2 network status objects we have, concatenated).
  * If <b>compress</b>, find the version compressed with zlib.  Return 0 if
  * nothing was found; otherwise set *<b>directory</b> to the matching network
  * status and return its length.
@@ -1215,8 +1193,7 @@
   return 0;
 }
 
-/**
- * Add a routerinfo_t to <b>descs_out</b> for each routers matching
+/** Add a routerinfo_t to <b>descs_out</b> for each routers matching
  * <b>key</b>.  The key should be either "/tor/server/authority" for our own
  * routerinfo; "/tor/server/all" for all the routerinfos we have,
  * concatenated; or "/tor/server/FP" where FP is a plus-separated sequence of



More information about the tor-commits mailing list