]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Fix mixed declaration/statement warning
authorNick Mathewson <nickm@torproject.org>
Wed, 31 Jul 2013 17:36:17 +0000 (13:36 -0400)
committerNick Mathewson <nickm@torproject.org>
Wed, 31 Jul 2013 17:36:17 +0000 (13:36 -0400)
src/test/test_pt.c

index 162d9e3da0b10e828d6b2e3207fffa9cf1008612..afa4917da770b66e354d463c1bf938df110fd17f 100644 (file)
@@ -166,12 +166,12 @@ static smartlist_t *
 tor_get_lines_from_handle_replacement(STDIN_HANDLE *handle,
                                       enum stream_status *stream_status_out)
 {
-  (void) handle;
-  (void) stream_status_out;
   static int times_called = 0;
-
   smartlist_t *retval_sl = smartlist_new();
 
+  (void) handle;
+  (void) stream_status_out;
+
   /* Generate some dummy CMETHOD lines the first 5 times. The 6th
      time, send 'CMETHODS DONE' to finish configuring the proxy. */
   if (times_called++ != 5) {
@@ -205,9 +205,9 @@ get_or_state_replacement(void)
 static void
 test_pt_configure_proxy(void *arg)
 {
-  (void) arg;
   int i;
   managed_proxy_t *mp = NULL;
+  (void) arg;
 
   dummy_state = tor_malloc_zero(sizeof(or_state_t));