diff options
author | Roger Dingledine <arma@torproject.org> | 2009-06-20 03:21:52 -0400 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2009-07-13 17:34:46 -0400 |
commit | 9ece0955f75d5bb4e9bd93b2fbbc1064def66774 (patch) | |
tree | 855d346a3732a97b106a609d45037d766de8b861 /src/or/directory.c | |
parent | 8f1a973669284e5662bd6f23bc96ecfafa57c554 (diff) | |
download | tor-9ece0955f75d5bb4e9bd93b2fbbc1064def66774.tar.gz tor-9ece0955f75d5bb4e9bd93b2fbbc1064def66774.zip |
fix comments and other typos
Diffstat (limited to 'src/or/directory.c')
-rw-r--r-- | src/or/directory.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/or/directory.c b/src/or/directory.c index daf2a15762..0f9cef53df 100644 --- a/src/or/directory.c +++ b/src/or/directory.c @@ -881,7 +881,7 @@ directory_get_consensus_url(int supports_conditional_consensus) if (supports_conditional_consensus) { char *authority_id_list; - smartlist_t *authority_digets = smartlist_create(); + smartlist_t *authority_digests = smartlist_create(); SMARTLIST_FOREACH(router_get_trusted_dir_servers(), trusted_dir_server_t *, ds, @@ -893,10 +893,10 @@ directory_get_consensus_url(int supports_conditional_consensus) hex = tor_malloc(2*CONDITIONAL_CONSENSUS_FPR_LEN+1); base16_encode(hex, 2*CONDITIONAL_CONSENSUS_FPR_LEN+1, ds->v3_identity_digest, CONDITIONAL_CONSENSUS_FPR_LEN); - smartlist_add(authority_digets, hex); + smartlist_add(authority_digests, hex); }); - smartlist_sort(authority_digets, _compare_strs); - authority_id_list = smartlist_join_strings(authority_digets, + smartlist_sort(authority_digests, _compare_strs); + authority_id_list = smartlist_join_strings(authority_digests, "+", 0, NULL); len = strlen(authority_id_list)+64; @@ -904,8 +904,8 @@ directory_get_consensus_url(int supports_conditional_consensus) tor_snprintf(url, len, "/tor/status-vote/current/consensus/%s.z", authority_id_list); - SMARTLIST_FOREACH(authority_digets, char *, cp, tor_free(cp)); - smartlist_free(authority_digets); + SMARTLIST_FOREACH(authority_digests, char *, cp, tor_free(cp)); + smartlist_free(authority_digests); tor_free(authority_id_list); } else { url = tor_strdup("/tor/status-vote/current/consensus.z"); |