summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2007-03-26 14:08:29 +0000
committerNick Mathewson <nickm@torproject.org>2007-03-26 14:08:29 +0000
commit83b2208ea49816d5fc3bd733a488da3eac54a9a7 (patch)
tree1e7d9b1b26f522f2b8be8f24d1e0127b60a44e7b /src
parentd1381aef827d328ab80d11e0b9c478ec2b6f2d70 (diff)
downloadtor-83b2208ea49816d5fc3bd733a488da3eac54a9a7.tar.gz
tor-83b2208ea49816d5fc3bd733a488da3eac54a9a7.zip
r12653@Kushana: nickm | 2007-03-25 18:21:38 -0400
Add documentation for make_old argument to routerlist functions. svn:r9906
Diffstat (limited to 'src')
-rw-r--r--src/or/routerlist.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/or/routerlist.c b/src/or/routerlist.c
index 55b26af008..c5a1dfddeb 100644
--- a/src/or/routerlist.c
+++ b/src/or/routerlist.c
@@ -1647,7 +1647,8 @@ routerlist_insert_old(routerlist_t *rl, routerinfo_t *ri)
* which to remove. We fill the gap in rl-&gt;routers with a later element in
* the list, if any exists. <b>ri</b> is freed.
*
- * DOCDOC make_old */
+ * If <b>make_old</b> is true, instead of deleting the router, we try adding
+ * it to rl-&gt;old_routers. */
void
routerlist_remove(routerlist_t *rl, routerinfo_t *ri, int idx, int make_old)
{
@@ -1703,7 +1704,8 @@ routerlist_remove_old(routerlist_t *rl, signed_descriptor_t *sd, int idx)
* search over the list to decide which to remove. We put ri_new in the same
* index as ri_old, if possible. ri is freed as appropriate.
*
- * DOCDOC make_old */
+ * If <b>make_old</b> is true, instead of deleting the router, we try adding
+ * it to rl-&gt;old_routers. */
static void
routerlist_replace(routerlist_t *rl, routerinfo_t *ri_old,
routerinfo_t *ri_new, int idx, int make_old)