diff options
author | Andrea Shepard <andrea@torproject.org> | 2012-10-10 00:48:36 -0700 |
---|---|---|
committer | Andrea Shepard <andrea@torproject.org> | 2012-10-10 00:48:36 -0700 |
commit | 5543c5b202b045bc5b7d8d4f127c54decd17e943 (patch) | |
tree | 586ae3885fcdfacc177b464982d487e791c7e421 | |
parent | 217352c3624aa62384af57a2e7046e577671b915 (diff) | |
download | tor-5543c5b202b045bc5b7d8d4f127c54decd17e943.tar.gz tor-5543c5b202b045bc5b7d8d4f127c54decd17e943.zip |
Fix formatting in various places after 6465/6816 work
-rw-r--r-- | src/common/crypto.c | 6 | ||||
-rw-r--r-- | src/or/channel.c | 5 | ||||
-rw-r--r-- | src/or/circuitmux.c | 2 | ||||
-rw-r--r-- | src/or/circuitmux_ewma.c | 6 | ||||
-rw-r--r-- | src/or/config.c | 1 | ||||
-rw-r--r-- | src/or/networkstatus.c | 1 |
6 files changed, 11 insertions, 10 deletions
diff --git a/src/common/crypto.c b/src/common/crypto.c index 2de624c7d0..87a86afd4a 100644 --- a/src/common/crypto.c +++ b/src/common/crypto.c @@ -244,8 +244,10 @@ crypto_global_init(int useAccel, const char *accelName, const char *accelDir) } if (SSLeay() < OPENSSL_V_SERIES(1,0,0)) { - log_notice(LD_CRYPTO, "Your OpenSSL version seems to be %s. We " - "recommend 1.0.0 or later.", crypto_openssl_get_version_str()); + log_notice(LD_CRYPTO, + "Your OpenSSL version seems to be %s. We recommend 1.0.0 " + "or later.", + crypto_openssl_get_version_str()); } if (useAccel > 0) { diff --git a/src/or/channel.c b/src/or/channel.c index 1ca5e1a333..570bb37b14 100644 --- a/src/or/channel.c +++ b/src/or/channel.c @@ -1518,7 +1518,7 @@ cell_queue_entry_dup(cell_queue_entry_t *q) rv = tor_malloc(sizeof(*rv)); memcpy(rv, q, sizeof(*rv)); - + return rv; } @@ -1529,7 +1529,8 @@ cell_queue_entry_dup(cell_queue_entry_t *q) */ static void -cell_queue_entry_free(cell_queue_entry_t *q, int handed_off) { +cell_queue_entry_free(cell_queue_entry_t *q, int handed_off) +{ if (!q) return; if (!handed_off) { diff --git a/src/or/circuitmux.c b/src/or/circuitmux.c index 6a6fa6d2d7..f3b6b7cd7b 100644 --- a/src/or/circuitmux.c +++ b/src/or/circuitmux.c @@ -412,7 +412,7 @@ circuitmux_detach_all_circuits(circuitmux_t *cmux) * Update active_circuits et al.; this does policy notifies, so * comes before freeing policy data */ - + if (to_remove->muxinfo.cell_count > 0) { circuitmux_make_circuit_inactive(cmux, circ, CELL_DIRECTION_IN); } diff --git a/src/or/circuitmux_ewma.c b/src/or/circuitmux_ewma.c index 9c26e1b2f3..82ad5c7413 100644 --- a/src/or/circuitmux_ewma.c +++ b/src/or/circuitmux_ewma.c @@ -168,7 +168,7 @@ ewma_free_circ_data(circuitmux_t *cmux, circuitmux_policy_data_t *pol_data, circuit_t *circ, circuitmux_policy_circ_data_t *pol_circ_data); -static void +static void ewma_notify_circ_active(circuitmux_t *cmux, circuitmux_policy_data_t *pol_data, circuit_t *circ, @@ -329,7 +329,7 @@ ewma_free_circ_data(circuitmux_t *cmux, * the active_circuits_pqueue. */ -static void +static void ewma_notify_circ_active(circuitmux_t *cmux, circuitmux_policy_data_t *pol_data, circuit_t *circ, @@ -354,7 +354,7 @@ ewma_notify_circ_active(circuitmux_t *cmux, * the active_circuits_pqueue. */ -static void +static void ewma_notify_circ_inactive(circuitmux_t *cmux, circuitmux_policy_data_t *pol_data, circuit_t *circ, diff --git a/src/or/config.c b/src/or/config.c index 81528c8275..3e92c43748 100644 --- a/src/or/config.c +++ b/src/or/config.c @@ -1389,7 +1389,6 @@ options_act(const or_options_t *old_options) channel_set_cmux_policy_everywhere(NULL); } - /* Update the BridgePassword's hashed version as needed. We store this as a * digest so that we can do side-channel-proof comparisons on it. */ diff --git a/src/or/networkstatus.c b/src/or/networkstatus.c index 0f6161e2e8..91720b5835 100644 --- a/src/or/networkstatus.c +++ b/src/or/networkstatus.c @@ -1844,7 +1844,6 @@ networkstatus_set_current_consensus(const char *consensus, channel_set_cmux_policy_everywhere(NULL); } - /* XXXX024 this call might be unnecessary here: can changing the * current consensus really alter our view of any OR's rate limits? */ connection_or_update_token_buckets(get_connection_array(), options); |