]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Keep make check-spaces happy
authorAndrea Shepard <andrea@torproject.org>
Fri, 1 Jul 2016 21:52:32 +0000 (21:52 +0000)
committerAndrea Shepard <andrea@torproject.org>
Fri, 1 Jul 2016 21:52:32 +0000 (21:52 +0000)
src/or/dirvote.c
src/or/shared_random.c
src/or/shared_random.h
src/or/shared_random_state.c
src/or/shared_random_state.h
src/test/test_dir.c
src/test/test_shared_random.c

index 4399bad27bb3dd605eca00bb9d284cf054dbd9b5..c31894a3b543e3b63b0d5db6598f5d5f44fb8fe4 100644 (file)
@@ -2648,7 +2648,8 @@ get_voting_schedule(const or_options_t *options, time_t now, int severity)
 
   new_voting_schedule->fetch_missing_signatures = start - (dist_delay/2);
   new_voting_schedule->voting_ends = start - dist_delay;
-  new_voting_schedule->fetch_missing_votes = start - dist_delay - (vote_delay/2);
+  new_voting_schedule->fetch_missing_votes =
+    start - dist_delay - (vote_delay/2);
   new_voting_schedule->voting_starts = start - dist_delay - vote_delay;
 
   {
index a7a2238ab7799b3c193ff40dfc22c9255ebf398b..e9e6cbcfde6cb60d30d9a2a99c202a5a4d3fb499 100644 (file)
@@ -327,7 +327,6 @@ reveal_decode(const char *encoded, sr_commit_t *commit)
   return -1;
 }
 
-
 /* Encode a reveal element using a given commit object to dst which is a
  * buffer large enough to put the base64-encoded reveal construction. The
  * format is as follow:
@@ -629,7 +628,8 @@ should_keep_commit(const sr_commit_t *commit, const char *voter_key,
           lasts multiple rounds. However if the commitment value changes
           during commit phase, it might be a bug so log more loudly. */
       if (!commitments_are_the_same(commit, saved_commit)) {
-        log_info(LD_DIR, "SR: Received altered commit from %s in commit phase.",
+        log_info(LD_DIR,
+                 "SR: Received altered commit from %s in commit phase.",
                  sr_commit_get_rsa_fpr(commit));
       } else {
         log_debug(LD_DIR, "SR: Ignoring known commit during commit phase.");
@@ -1348,9 +1348,11 @@ sr_save_and_cleanup(void)
 /* Set the global value of number of SRV agreements so the test can play
  * along by calling specific functions that don't parse the votes prior for
  * the AuthDirNumSRVAgreements value. */
-void set_num_srv_agreements(int32_t value)
+void
+set_num_srv_agreements(int32_t value)
 {
   num_srv_agreements_from_vote = value;
 }
 
 #endif /* TOR_UNIT_TESTS */
+
index 3922f33e3492d53eaf7dc045e6f44536c451cc0c..51f3b550d8036c2c35d5d610a5a4f02c913e804c 100644 (file)
@@ -164,3 +164,4 @@ void set_num_srv_agreements(int32_t value);
 #endif /* TOR_UNIT_TESTS */
 
 #endif /* TOR_SHARED_RANDOM_H */
+
index d0cd4607566cb55eeb685e77abe5c65c9e04168d..73df9c43fb76d08664eaf42dfb79d9fcb82d8681 100644 (file)
@@ -1351,3 +1351,4 @@ get_sr_state(void)
 }
 
 #endif /* TOR_UNIT_TESTS */
+
index e0b6e461ba6ad9fb79bf4c6eeb2fff13e1ccb77a..43a7f1d284b677cc9dafad614ed6a4666a58a3a6 100644 (file)
@@ -144,3 +144,4 @@ STATIC sr_state_t *get_sr_state(void);
 #endif /* TOR_UNIT_TESTS */
 
 #endif /* TOR_SHARED_RANDOM_STATE_H */
+
index 200cddd9094cb93b2f439b9c9cc07abc758963a1..8889ccc41baee72b2ec916e63463d616be7c528d 100644 (file)
@@ -1438,7 +1438,8 @@ test_dir_measured_bw_kb_cache(void *arg)
 }
 
 static char *
-my_dirvote_compute_params(smartlist_t *votes, int method, int total_authorities)
+my_dirvote_compute_params(smartlist_t *votes, int method,
+                          int total_authorities)
 {
   smartlist_t *s = dirvote_compute_params(votes, method, total_authorities);
   tor_assert(s);
@@ -1573,7 +1574,8 @@ test_dir_param_voting_lookup(void *arg)
   tt_int_op(1000,
             OP_EQ, dirvote_get_intermediate_param_value(lst, "ab", 1000));
   tt_int_op(9, OP_EQ, dirvote_get_intermediate_param_value(lst, "abc", 1000));
-  tt_int_op(99, OP_EQ, dirvote_get_intermediate_param_value(lst, "abcd", 1000));
+  tt_int_op(99, OP_EQ,
+            dirvote_get_intermediate_param_value(lst, "abcd", 1000));
 
   /* moomin appears twice. */
   tt_int_op(-100, OP_EQ,
index 95f819819e9c8a6e5a2092c3ee3d4e1920c03645..d0017853402c7ac3fd579b0e101e6b79a58e8aa6 100644 (file)
@@ -1263,3 +1263,4 @@ struct testcase_t sr_tests[] = {
     NULL, NULL },
   END_OF_TESTCASES
 };
+