]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
whitespace fixes
authorNick Mathewson <nickm@torproject.org>
Fri, 23 Jan 2015 16:18:28 +0000 (11:18 -0500)
committerNick Mathewson <nickm@torproject.org>
Fri, 23 Jan 2015 16:18:28 +0000 (11:18 -0500)
src/or/circuitbuild.h
src/or/config.c
src/or/cpuworker.c
src/or/directory.c
src/or/directory.h
src/or/routerlist.c
src/test/test_crypto_slow.c
src/test/test_routerlist.c
src/test/test_util_slow.c

index 7d495307b2707eb3d46224df37117a3465c839a1..c72016d530f753188a0d728ec3adffb3226a89c8 100644 (file)
@@ -22,7 +22,8 @@ origin_circuit_t *circuit_establish_circuit(uint8_t purpose,
                                             extend_info_t *exit,
                                             int flags);
 int circuit_handle_first_hop(origin_circuit_t *circ);
-void circuit_n_chan_done(channel_t *chan, int status, int close_origin_circuits);
+void circuit_n_chan_done(channel_t *chan, int status,
+                         int close_origin_circuits);
 int inform_testing_reachability(void);
 int circuit_timeout_want_to_count_circ(origin_circuit_t *circ);
 int circuit_send_next_onion_skin(origin_circuit_t *circ);
index 91fbe970d92014741ca8cf9c617d8f0218a7ecc0..568baec703c603c0df7ef60aa5fa0e4a16044c50 100644 (file)
@@ -5758,7 +5758,6 @@ parse_port_config(smartlist_t *out,
     return 0;
   } /* end if (listenaddrs) */
 
-
   /* No ListenAddress lines. If there's no FooPort, then maybe make a default
    * one. */
   if (! ports) {
index 39d2079994953ee17058892c58b296bdbee50be8..0785c671d9857e6e162d4100237bb93a09ec993b 100644 (file)
@@ -366,7 +366,6 @@ cpuworker_onion_handshake_replyfn(void *work_)
   }
   log_debug(LD_OR,"onionskin_answer succeeded. Yay.");
 
-
  done_processing:
   memwipe(&rpl, 0, sizeof(rpl));
   memwipe(job, 0, sizeof(*job));
index 348d971b34c0fe31fdf5bfa05465a2bbf2581124..d2b6b86f6d629dbd59354527fa3c60bbf969af6a 100644 (file)
@@ -236,7 +236,6 @@ dir_fetch_type(int dir_purpose, int router_purpose, const char *resource)
   return type;
 }
 
-
 /** Return true iff <b>identity_digest</b> is the digest of a router which
  * says that it caches extrainfos.  (If <b>is_authority</b> we always
  * believe that to be true.) */
index 51e6ed384d9b459bcb105a3c1fcdd21458f759e8..4899eb5c8c82406058933ded26c7988d0989da23 100644 (file)
@@ -123,7 +123,8 @@ int download_status_get_n_failures(const download_status_t *dls);
 /* Used only by directory.c and test_dir.c */
 
 STATIC int parse_http_url(const char *headers, char **url);
-STATIC int purpose_needs_anonymity(uint8_t dir_purpose, uint8_t router_purpose);
+STATIC int purpose_needs_anonymity(uint8_t dir_purpose,
+                                   uint8_t router_purpose);
 STATIC dirinfo_type_t dir_fetch_type(int dir_purpose, int router_purpose,
                                      const char *resource);
 #endif
index dacf9803425400dde20c624e932af222fece7046..fe92ac00508eeb82b1eb59cba19f9e61cc4605ca 100644 (file)
@@ -1442,7 +1442,7 @@ router_pick_directory_server_impl(dirinfo_type_t type, int flags,
   const networkstatus_t *consensus = networkstatus_get_latest_consensus();
   const int requireother = ! (flags & PDS_ALLOW_SELF);
   const int fascistfirewall = ! (flags & PDS_IGNORE_FASCISTFIREWALL);
-  const int no_serverdesc_fetching = (flags & PDS_NO_EXISTING_SERVERDESC_FETCH);
+  const int no_serverdesc_fetching =(flags & PDS_NO_EXISTING_SERVERDESC_FETCH);
   const int no_microdesc_fetching = (flags & PDS_NO_EXISTING_MICRODESC_FETCH);
   const int for_guard = (flags & PDS_FOR_GUARD);
   int try_excluding = 1, n_excluded = 0, n_busy = 0;
@@ -4265,7 +4265,8 @@ MOCK_IMPL(STATIC void, initiate_descriptor_downloads,
     if (b64_256) {
       digest256_to_base64(cp, smartlist_get(digests, lo));
     } else {
-      base16_encode(cp, enc_digest_len, smartlist_get(digests, lo), digest_len);
+      base16_encode(cp, enc_digest_len, smartlist_get(digests, lo),
+                    digest_len);
     }
     smartlist_add(tmp, cp);
   }
@@ -4372,7 +4373,6 @@ launch_descriptor_downloads(int purpose,
                  "tried downloading descriptors recently. Downloading.",
                  descname);
       }
-
     }
   }
 
index 94fd69d45ae9befc9ed89a26cecde544b4cc1db0..a0f6cdc1165e7102fdcbd304fe4576813d43cd1c 100644 (file)
@@ -10,7 +10,6 @@
 #include "crypto_s2k.h"
 #include "crypto_pwbox.h"
 
-
 /** Run unit tests for our secret-to-key passphrase hashing functionality. */
 static void
 test_crypto_s2k_rfc2440(void *arg)
index 390b69102f54c048a4f7fcadd1aafa3df0a34d37..381a592c5b0854d7a1fa043064fcb0894b806851 100644 (file)
@@ -7,7 +7,6 @@
 #include "directory.h"
 #include "test.h"
 
-
 /* 4 digests + 3 sep + pre + post + NULL */
 static char output[4*BASE64_DIGEST256_LEN+3+2+2+1];
 
@@ -101,3 +100,4 @@ struct testcase_t routerlist_tests[] = {
   NODE(launch_descriptor_downloads, 0),
   END_OF_TESTCASES
 };
+
index 4adcbe1d1766fa1e702da73a2a5c7628bb5b44b4..a597ef3cbc2f652a9fbac53afc9d25b63afa0a2a 100644 (file)
@@ -386,3 +386,4 @@ struct testcase_t slow_util_tests[] = {
   UTIL_TEST(spawn_background_waitpid_notify, 0),
   END_OF_TESTCASES
 };
+