commit 0770e4ccdbda2e71ad0a45d528b125df5b8db1a3 Author: Linus Nordberg linus@torproject.org Date: Wed Sep 5 19:40:15 2012 +0200
Whitespace fixes. --- src/common/address.c | 2 +- src/or/dirvote.c | 3 ++- 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 e5862be..dffbcaf 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 082a1ef..8e85b2b 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 b3feeff..6211218 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,
tor-commits@lists.torproject.org