diff options
author | Nick Mathewson <nickm@torproject.org> | 2008-12-22 17:53:04 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2008-12-22 17:53:04 +0000 |
commit | 1e5f4574613be3f26cd05f2873fd54ee526a63d7 (patch) | |
tree | 614832936d9b2e3592f76f400a001d933fcaf14f /src/or/routerlist.c | |
parent | 167d266dbf618c856a87ac482668cd848651ab62 (diff) | |
download | tor-1e5f4574613be3f26cd05f2873fd54ee526a63d7.tar.gz tor-1e5f4574613be3f26cd05f2873fd54ee526a63d7.zip |
Fix most DOCDOCs remaining and/or added by redox.
svn:r17734
Diffstat (limited to 'src/or/routerlist.c')
-rw-r--r-- | src/or/routerlist.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/or/routerlist.c b/src/or/routerlist.c index 78c02ddb24..7004d938a8 100644 --- a/src/or/routerlist.c +++ b/src/or/routerlist.c @@ -549,7 +549,8 @@ router_should_rebuild_store(desc_store_t *store) return store->journal_len > (1<<15); } -/* DOCDOC desc_get_store */ +/** Return the desc_store_t in <b>rl</b> that should be used to store + * <b>sd</b>. */ static INLINE desc_store_t * desc_get_store(routerlist_t *rl, signed_descriptor_t *sd) { @@ -2466,7 +2467,10 @@ dump_routerlist_mem_usage(int severity) #endif } -/* DOCDOC _routerlist_find_elt */ +/** Debugging helper: If <b>idx</b> is nonnegative, assert that <b>ri</b> is + * in <b>sl</b> at position <b>idx</b>. Otherwise, search <b>sl</b> for + * <b>ri</b>. Return the index of <b>ri</b> in <b>sl</b>, or -1 if <b>ri</b> + * is not in <b>sl</b>. */ static INLINE int _routerlist_find_elt(smartlist_t *sl, void *ri, int idx) { |