mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-28 14:23:30 +01:00
onion_queue.c: use TAILQ_HEAD less confusingly.
When we use macro inline, clang-format likes to break it in the middle, which makes checkSpace get confused.
This commit is contained in:
parent
c8fae6b5c8
commit
e9b663beaf
@ -49,10 +49,12 @@ typedef struct onion_queue_t {
|
|||||||
/** 5 seconds on the onion queue til we just send back a destroy */
|
/** 5 seconds on the onion queue til we just send back a destroy */
|
||||||
#define ONIONQUEUE_WAIT_CUTOFF 5
|
#define ONIONQUEUE_WAIT_CUTOFF 5
|
||||||
|
|
||||||
|
TOR_TAILQ_HEAD(onion_queue_head_t, onion_queue_t);
|
||||||
|
typedef struct onion_queue_head_t onion_queue_head_t;
|
||||||
|
|
||||||
/** Array of queues of circuits waiting for CPU workers. An element is NULL
|
/** Array of queues of circuits waiting for CPU workers. An element is NULL
|
||||||
* if that queue is empty.*/
|
* if that queue is empty.*/
|
||||||
static TOR_TAILQ_HEAD(onion_queue_head_t, onion_queue_t)
|
static onion_queue_head_t ol_list[MAX_ONION_HANDSHAKE_TYPE+1] =
|
||||||
ol_list[MAX_ONION_HANDSHAKE_TYPE+1] =
|
|
||||||
{ TOR_TAILQ_HEAD_INITIALIZER(ol_list[0]), /* tap */
|
{ TOR_TAILQ_HEAD_INITIALIZER(ol_list[0]), /* tap */
|
||||||
TOR_TAILQ_HEAD_INITIALIZER(ol_list[1]), /* fast */
|
TOR_TAILQ_HEAD_INITIALIZER(ol_list[1]), /* fast */
|
||||||
TOR_TAILQ_HEAD_INITIALIZER(ol_list[2]), /* ntor */
|
TOR_TAILQ_HEAD_INITIALIZER(ol_list[2]), /* ntor */
|
||||||
|
Loading…
Reference in New Issue
Block a user