diff options
-rw-r--r-- | src/common/address.c | 2 | ||||
-rw-r--r-- | src/or/dirvote.c | 3 | ||||
-rw-r--r-- | src/or/dirvote.h | 3 |
3 files changed, 5 insertions, 3 deletions
diff --git a/src/common/address.c b/src/common/address.c index e5862be1e..dffbcaff4 100644 --- a/src/common/address.c +++ b/src/common/address.c @@ -1697,7 +1697,6 @@ tor_addr_hostname_is_local(const char *name) !strcasecmpend(name, ".local"); } - /** Return a newly allocated tor_addr_port_t with <b>addr</b> and <b>port</b> filled in. */ tor_addr_port_t * @@ -1709,3 +1708,4 @@ tor_addr_port_new(const tor_addr_t *addr, uint16_t port) ap->port = port; return ap; } + diff --git a/src/or/dirvote.c b/src/or/dirvote.c index 082a1efc0..8e85b2bcc 100644 --- a/src/or/dirvote.c +++ b/src/or/dirvote.c @@ -485,7 +485,8 @@ compute_routerstatus_consensus(smartlist_t *votes, int consensus_method, } SMARTLIST_FOREACH_END(rs); smartlist_sort(alt_orports, _compare_orports); - most_alt_orport = smartlist_get_most_frequent(alt_orports, _compare_orports); + most_alt_orport = smartlist_get_most_frequent(alt_orports, + _compare_orports); if (most_alt_orport) { memcpy(best_alt_orport_out, most_alt_orport, sizeof(tor_addr_port_t)); log_debug(LD_DIR, "\"a\" line winner for %s is %s:%d", diff --git a/src/or/dirvote.h b/src/or/dirvote.h index b3feeff06..621121864 100644 --- a/src/or/dirvote.h +++ b/src/or/dirvote.h @@ -96,7 +96,8 @@ networkstatus_t * dirserv_generate_networkstatus_vote_obj(crypto_pk_t *private_key, authority_cert_t *cert); -microdesc_t *dirvote_create_microdescriptor(const routerinfo_t *ri, int consensus_method); +microdesc_t *dirvote_create_microdescriptor(const routerinfo_t *ri, + int consensus_method); ssize_t dirvote_format_microdesc_vote_line(char *out, size_t out_len, const microdesc_t *md, int consensus_method_low, |