diff options
author | Sebastian Hahn <sebastian@torproject.org> | 2015-08-20 20:28:47 +0200 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2015-08-21 10:36:53 -0400 |
commit | 5cf24ff3af046391dcaf1df636e3bd5d7d17573d (patch) | |
tree | a54bcf47ef71710a223ec795d1b1e6002433affc | |
parent | 38601f06b756161b7bfa1414e7a1968450609198 (diff) | |
download | tor-5cf24ff3af046391dcaf1df636e3bd5d7d17573d.tar.gz tor-5cf24ff3af046391dcaf1df636e3bd5d7d17573d.zip |
Fix a bunch of check-spaces complaints
-rw-r--r-- | src/common/compat.c | 1 | ||||
-rw-r--r-- | src/common/container.h | 3 | ||||
-rw-r--r-- | src/or/control.c | 1 | ||||
-rw-r--r-- | src/or/rendcache.c | 2 | ||||
-rw-r--r-- | src/or/rendclient.c | 9 | ||||
-rw-r--r-- | src/test/test_util.c | 1 | ||||
-rw-r--r-- | src/test/test_workqueue.c | 3 |
7 files changed, 12 insertions, 8 deletions
diff --git a/src/common/compat.c b/src/common/compat.c index 76f9bcb97e..7d72b4b7fd 100644 --- a/src/common/compat.c +++ b/src/common/compat.c @@ -3424,3 +3424,4 @@ tor_get_avail_disk_space(const char *path) return -1; #endif } + diff --git a/src/common/container.h b/src/common/container.h index 5abd8b48d9..bf4f04762c 100644 --- a/src/common/container.h +++ b/src/common/container.h @@ -110,7 +110,8 @@ void smartlist_sort_digests256(smartlist_t *sl); void smartlist_sort_pointers(smartlist_t *sl); const char *smartlist_get_most_frequent_string(smartlist_t *sl); -const char *smartlist_get_most_frequent_string_(smartlist_t *sl, int *count_out); +const char *smartlist_get_most_frequent_string_(smartlist_t *sl, + int *count_out); const uint8_t *smartlist_get_most_frequent_digest256(smartlist_t *sl); void smartlist_uniq_strings(smartlist_t *sl); diff --git a/src/or/control.c b/src/or/control.c index 3638bd2e05..44b19d70a3 100644 --- a/src/or/control.c +++ b/src/or/control.c @@ -6478,3 +6478,4 @@ control_testing_set_global_event_mask(uint64_t mask) global_event_mask = mask; } #endif + diff --git a/src/or/rendcache.c b/src/or/rendcache.c index 9a33046fb6..fe9a1344f6 100644 --- a/src/or/rendcache.c +++ b/src/or/rendcache.c @@ -330,7 +330,7 @@ cache_failure_intro_lookup(const uint8_t *identity, const char *service_id, *intro_entry = intro_elem; } return 1; -not_found: + not_found: return 0; } diff --git a/src/or/rendclient.c b/src/or/rendclient.c index c6f29a7707..a39e518e99 100644 --- a/src/or/rendclient.c +++ b/src/or/rendclient.c @@ -1021,7 +1021,7 @@ rend_client_report_intro_point_failure(extend_info_t *failed_intro, /* fall through */ case INTRO_POINT_FAILURE_GENERIC: rend_cache_intro_failure_note(failure_type, - (uint8_t *) failed_intro->identity_digest, + (uint8_t *)failed_intro->identity_digest, rend_query->onion_address); rend_intro_point_free(intro); smartlist_del(ent->parsed->intro_nodes, i); @@ -1038,9 +1038,10 @@ rend_client_report_intro_point_failure(extend_info_t *failed_intro, intro->unreachable_count, zap_intro_point ? " Removing from descriptor.": ""); if (zap_intro_point) { - rend_cache_intro_failure_note(failure_type, - (uint8_t *) failed_intro->identity_digest, - rend_query->onion_address); + rend_cache_intro_failure_note( + failure_type, + (uint8_t *) failed_intro->identity_digest, + rend_query->onion_address); rend_intro_point_free(intro); smartlist_del(ent->parsed->intro_nodes, i); } diff --git a/src/test/test_util.c b/src/test/test_util.c index 8b4513d34c..0a5783e9f5 100644 --- a/src/test/test_util.c +++ b/src/test/test_util.c @@ -3654,7 +3654,6 @@ test_util_di_map(void *arg) dimap_free(dimap, tor_free_); } - /** * Test counting high bits */ diff --git a/src/test/test_workqueue.c b/src/test/test_workqueue.c index b6a10bb33f..0d79733cf0 100644 --- a/src/test/test_workqueue.c +++ b/src/test/test_workqueue.c @@ -306,7 +306,8 @@ replysock_readable_cb(tor_socket_t sock, short what, void *arg) threadpool_queue_update(tp, NULL, workqueue_do_shutdown, NULL, NULL); // Anything we add after starting the shutdown must not be executed. - threadpool_queue_work(tp, workqueue_shutdown_error, handle_reply_shutdown, NULL); + threadpool_queue_work(tp, workqueue_shutdown_error, + handle_reply_shutdown, NULL); { struct timeval limit = { 2, 0 }; tor_event_base_loopexit(tor_libevent_get_base(), &limit); |