mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-24 12:23:32 +01:00
Fix check-spaces
This commit is contained in:
parent
e5f8c772f4
commit
cc6529e9bb
@ -240,3 +240,4 @@ tor_threads_init(void)
|
||||
set_main_thread();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -253,3 +253,4 @@ alert_sockets_close(alert_sockets_t *socks)
|
||||
}
|
||||
socks->read_fd = socks->write_fd = -1;
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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();
|
||||
}
|
||||
|
||||
|
@ -45,3 +45,4 @@ tor_socket_t replyqueue_get_socket(replyqueue_t *rq);
|
||||
void replyqueue_process(replyqueue_t *queue);
|
||||
|
||||
#endif
|
||||
|
||||
|
@ -1258,7 +1258,6 @@ test_stats(void *arg)
|
||||
tor_free(s);
|
||||
}
|
||||
|
||||
|
||||
static void *
|
||||
passthrough_test_setup(const struct testcase_t *testcase)
|
||||
{
|
||||
|
@ -313,3 +313,4 @@ struct testcase_t thread_tests[] = {
|
||||
&passthrough_setup, (void*)"tv" },
|
||||
END_OF_TESTCASES
|
||||
};
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user