aboutsummaryrefslogtreecommitdiff
path: root/src/or/dirvote.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2008-12-22 17:53:04 +0000
committerNick Mathewson <nickm@torproject.org>2008-12-22 17:53:04 +0000
commit1e5f4574613be3f26cd05f2873fd54ee526a63d7 (patch)
tree614832936d9b2e3592f76f400a001d933fcaf14f /src/or/dirvote.c
parent167d266dbf618c856a87ac482668cd848651ab62 (diff)
downloadtor-1e5f4574613be3f26cd05f2873fd54ee526a63d7.tar
tor-1e5f4574613be3f26cd05f2873fd54ee526a63d7.tar.gz
Fix most DOCDOCs remaining and/or added by redox.
svn:r17734
Diffstat (limited to 'src/or/dirvote.c')
-rw-r--r--src/or/dirvote.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/or/dirvote.c b/src/or/dirvote.c
index da34ab1dc..b276b11fc 100644
--- a/src/or/dirvote.c
+++ b/src/or/dirvote.c
@@ -219,7 +219,9 @@ get_voter(const networkstatus_t *vote)
return smartlist_get(vote->voters, 0);
}
-/* DOCDOC dir_src_ent_t */
+/** Temporary structure used in constructing a list of dir-source entries
+ * for a consensus. One of these is generated for every vote, and one more
+ * for every legacy key in each vote. */
typedef struct dir_src_ent_t {
networkstatus_t *v;
const char *digest;
@@ -236,7 +238,9 @@ _compare_votes_by_authority_id(const void **_a, const void **_b)
get_voter(b)->identity_digest, DIGEST_LEN);
}
-/* DOCDOC _compare_dir_src_ents_by_authority_id */
+/** Helper: Compare the dir_src_ent_ts in *<b>_a</b> and *<b>_b</b> by
+ * their identity digests, and return -1, 0, or 1 depending on their
+ * ordering */
static int
_compare_dir_src_ents_by_authority_id(const void **_a, const void **_b)
{