]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Fix formatting in various places after 6465/6816 work
authorAndrea Shepard <andrea@torproject.org>
Wed, 10 Oct 2012 07:48:36 +0000 (00:48 -0700)
committerAndrea Shepard <andrea@torproject.org>
Wed, 10 Oct 2012 07:48:36 +0000 (00:48 -0700)
src/common/crypto.c
src/or/channel.c
src/or/circuitmux.c
src/or/circuitmux_ewma.c
src/or/config.c
src/or/networkstatus.c

index 2de624c7d079db71ec1fd8fd2f9f80b02c7ee5a5..87a86afd4a0ef155575f2c2e3c80af9e57e78caa 100644 (file)
@@ -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) {
index 1ca5e1a333b7f1b1f21f70bd4b07f76568e671bb..570bb37b14eefe3d1e8b9f1975517f964aee20d5 100644 (file)
@@ -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) {
index 6a6fa6d2d767b46ac8a8099418eeb8c63adf2e33..f3b6b7cd7b8b5e36f539a3cbb77e193cf17fc9c6 100644 (file)
@@ -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);
             }
index 9c26e1b2f356f04832a6f82d1c887c8e2420f956..82ad5c741367af1932676d2e2a72d1117fad5302 100644 (file)
@@ -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,
index 81528c82750eaddbfc6356bbe715784c236dec4c..3e92c437489d57e10303bf20fe49db25cad976f8 100644 (file)
@@ -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.
    */
index 0f6161e2e8d6f9e6db504fb46b8be7182929bdce..91720b5835c580423358388fdf5c980b076516c8 100644 (file)
@@ -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);