Whitespace fixes.

This commit is contained in:
Linus Nordberg 2012-09-05 19:40:15 +02:00
parent 116c8409ba
commit 0770e4ccdb
3 changed files with 5 additions and 3 deletions

View File

@ -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;
}

View File

@ -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",

View File

@ -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,