]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Fix check-spaces complaints
authorNick Mathewson <nickm@torproject.org>
Fri, 2 Oct 2015 11:22:00 +0000 (13:22 +0200)
committerNick Mathewson <nickm@torproject.org>
Fri, 2 Oct 2015 11:22:00 +0000 (13:22 +0200)
src/common/container.c
src/common/log.c
src/common/torlog.h
src/test/test_address.c

index df4952f63446f656ed64e682bbe91a5e11048e33..c6f059170e8b52c573cee487188b5d226244e47e 100644 (file)
@@ -85,7 +85,8 @@ smartlist_ensure_capacity(smartlist_t *sl, int size)
     }
     sl->list = tor_reallocarray(sl->list, sizeof(void *),
                                 ((size_t)higher));
-    memset(sl->list + sl->capacity, 0, sizeof(void *) * (higher - sl->capacity));
+    memset(sl->list + sl->capacity, 0,
+           sizeof(void *) * (higher - sl->capacity));
     sl->capacity = higher;
   }
 #undef ASSERT_CAPACITY
index 126fb2e5dbe3012ebed1d3b85b3946919bde63a4..7ede6100a2c7959c0a043c3972909f93b4620aa9 100644 (file)
@@ -1102,7 +1102,8 @@ add_file_log(const log_severity_list_t *severity, const char *filename,
  * Tor-<syslog_identity_tag> if that is not NULL.
  */
 int
-add_syslog_log(const log_severity_list_t *severity, const char* syslog_identity_tag)
+add_syslog_log(const log_severity_list_t *severity,
+               const char* syslog_identity_tag)
 {
   logfile_t *lf;
   if (syslog_count++ == 0) {
index 57679b5f5c5b9376b75303ec5a5368f00cfa04e5..722d595ee0f498fc7991c939d2ad9cdbb15f5170 100644 (file)
@@ -135,7 +135,8 @@ void add_stream_log(const log_severity_list_t *severity, const char *name,
 int add_file_log(const log_severity_list_t *severity, const char *filename,
                  const int truncate);
 #ifdef HAVE_SYSLOG_H
-int add_syslog_log(const log_severity_list_t *severity, const char* syslog_identity_tag);
+int add_syslog_log(const log_severity_list_t *severity,
+                   const char* syslog_identity_tag);
 #endif
 int add_callback_log(const log_severity_list_t *severity, log_callback cb);
 void logs_set_domain_logging(int enabled);
index 938f77693d73bee29513b743c09bc3db42623fe7..e48c06a6c452015a3752b5521ae0f00f3d59bf49 100644 (file)
@@ -836,7 +836,7 @@ test_address_get_if_addrs_internal_fail(void *arg)
   rv = get_interface_address(LOG_ERR, &ipv4h_addr);
   tt_assert(rv == -1);
 
-done:
+ done:
   UNMOCK(get_interface_addresses_raw);
   UNMOCK(get_interface_address6_via_udp_socket_hack);
   free_interface_address6_list(results1);
@@ -864,7 +864,7 @@ test_address_get_if_addrs_no_internal_fail(void *arg)
   tt_assert(results2 != NULL);
   tt_int_op(smartlist_len(results2),==,0);
 
-done:
+ done:
   UNMOCK(get_interface_addresses_raw);
   UNMOCK(get_interface_address6_via_udp_socket_hack);
   free_interface_address6_list(results1);