Browse Source

Fix check-spaces

Nick Mathewson 10 years ago
parent
commit
cc6529e9bb

+ 1 - 0
src/common/compat_pthreads.c

@@ -240,3 +240,4 @@ tor_threads_init(void)
     set_main_thread();
   }
 }
+

+ 1 - 0
src/common/compat_threads.c

@@ -253,3 +253,4 @@ alert_sockets_close(alert_sockets_t *socks)
   }
   socks->read_fd = socks->write_fd = -1;
 }
+

+ 1 - 1
src/common/compat_threads.h

@@ -44,7 +44,6 @@ typedef struct tor_mutex_t {
 #endif
 } tor_mutex_t;
 
-
 tor_mutex_t *tor_mutex_new(void);
 tor_mutex_t *tor_mutex_new_nonrecursive(void);
 void tor_mutex_init(tor_mutex_t *m);
@@ -113,3 +112,4 @@ int alert_sockets_create(alert_sockets_t *socks_out, uint32_t flags);
 void alert_sockets_close(alert_sockets_t *socks);
 
 #endif
+

+ 1 - 2
src/common/compat_winthreads.c

@@ -33,7 +33,6 @@ spawn_func(void (*func)(void *), void *data)
   return 0;
 }
 
-
 /** End the current thread/process.
  */
 void
@@ -46,7 +45,6 @@ spawn_exit(void)
   _exit(0);
 }
 
-
 void
 tor_mutex_init(tor_mutex_t *m)
 {
@@ -195,3 +193,4 @@ tor_threads_init(void)
 {
   set_main_thread();
 }
+

+ 1 - 0
src/common/workqueue.h

@@ -45,3 +45,4 @@ tor_socket_t replyqueue_get_socket(replyqueue_t *rq);
 void replyqueue_process(replyqueue_t *queue);
 
 #endif
+

+ 0 - 1
src/test/test.c

@@ -1258,7 +1258,6 @@ test_stats(void *arg)
   tor_free(s);
 }
 
-
 static void *
 passthrough_test_setup(const struct testcase_t *testcase)
 {

+ 1 - 0
src/test/test_threads.c

@@ -313,3 +313,4 @@ struct testcase_t thread_tests[] = {
     &passthrough_setup, (void*)"tv" },
   END_OF_TESTCASES
 };
+

+ 6 - 2
src/test/test_workqueue.c

@@ -293,9 +293,12 @@ replysock_readable_cb(tor_socket_t sock, short what, void *arg)
     add_n_work_items(tp, n_to_send);
   }
 
-  if (shutting_down == 0 && n_received+n_successful_cancel == n_sent && n_sent >= opt_n_items) {
+  if (shutting_down == 0 &&
+      n_received+n_successful_cancel == n_sent &&
+      n_sent >= opt_n_items) {
     shutting_down = 1;
-    threadpool_queue_for_all(tp, NULL, workqueue_do_shutdown, shutdown_reply, NULL);
+    threadpool_queue_for_all(tp, NULL,
+                             workqueue_do_shutdown, shutdown_reply, NULL);
   }
 }
 
@@ -416,3 +419,4 @@ main(int argc, char **argv)
     return 0;
   }
 }
+