From 1e5f4574613be3f26cd05f2873fd54ee526a63d7 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Mon, 22 Dec 2008 17:53:04 +0000 Subject: Fix most DOCDOCs remaining and/or added by redox. svn:r17734 --- src/or/directory.c | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'src/or/directory.c') diff --git a/src/or/directory.c b/src/or/directory.c index b5475fe6d..7a0db89ed 100644 --- a/src/or/directory.c +++ b/src/or/directory.c @@ -862,18 +862,17 @@ _compare_strs(const void **a, const void **b) return strcmp(s1, s2); } +#define CONDITIONAL_CONSENSUS_FPR_LEN 3 +#if (CONDITIONAL_CONSENSUS_FPR_LEN > DIGEST_LEN) +#error "conditional consensus fingerprint length is larger than digest length" +#endif + /** Return the URL we should use for a consensus download. * * This url depends on whether or not the server we go to * is sufficiently new to support conditional consensus downloading, * i.e. GET .../consensus/fpr+fpr+fpr */ -#define CONDITIONAL_CONSENSUS_FPR_LEN 3 -#if (CONDITIONAL_CONSENSUS_FPR_LEN > DIGEST_LEN) -#error "conditional consensus fingerprint length is larger than digest length" -#endif - -/* DOCDOC directory_get_consensus_url */ static char * directory_get_consensus_url(int supports_conditional_consensus) { @@ -2195,7 +2194,10 @@ typedef struct request_t { * of request. Maps from request type to pointer to request_t. */ static strmap_t *request_map = NULL; -/* DOCDOC note_client_request */ +/** Record that a client request of purpose was made, and that + * bytes bytes of possibly compressed data were sent/received. + * Used to keep track of how much we've up/downloaded in what kind of + * request. */ static void note_client_request(int purpose, int compressed, size_t bytes) { -- cgit v1.2.3