mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
Run our #else/#endif annotator on our source code.
This commit is contained in:
@@ -61,9 +61,9 @@ mark_handled(int serial)
|
||||
tor_assert(! bitarray_is_set(handled, serial));
|
||||
bitarray_set(handled, serial);
|
||||
tor_mutex_release(&bitmap_mutex);
|
||||
#else
|
||||
#else /* !(defined(TRACK_RESPONSES)) */
|
||||
(void)serial;
|
||||
#endif
|
||||
#endif /* defined(TRACK_RESPONSES) */
|
||||
}
|
||||
|
||||
static workqueue_reply_t
|
||||
@@ -288,7 +288,7 @@ replysock_readable_cb(tor_socket_t sock, short what, void *arg)
|
||||
}
|
||||
puts("");
|
||||
tor_mutex_release(&bitmap_mutex);
|
||||
#endif
|
||||
#endif /* defined(TRACK_RESPONSES) */
|
||||
|
||||
if (n_sent - (n_received+n_successful_cancel) < opt_n_lowwater) {
|
||||
int n_to_send = n_received + opt_n_inflight - n_sent;
|
||||
@@ -422,7 +422,7 @@ main(int argc, char **argv)
|
||||
received = bitarray_init_zero(opt_n_items);
|
||||
tor_mutex_init(&bitmap_mutex);
|
||||
handled_len = opt_n_items;
|
||||
#endif
|
||||
#endif /* defined(TRACK_RESPONSES) */
|
||||
|
||||
for (i = 0; i < opt_n_inflight; ++i) {
|
||||
if (! add_work(tp)) {
|
||||
|
||||
Reference in New Issue
Block a user