aboutsummaryrefslogtreecommitdiff
path: root/src/core/ngx_queue.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/ngx_queue.h')
-rw-r--r--src/core/ngx_queue.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/core/ngx_queue.h b/src/core/ngx_queue.h
index da0ffd2e1..39296add4 100644
--- a/src/core/ngx_queue.h
+++ b/src/core/ngx_queue.h
@@ -20,6 +20,11 @@ struct ngx_queue_s {
};
+#define ngx_queue_init(q) \
+ (q)->prev = q; \
+ (q)->next = q;
+
+
#define ngx_queue_empty(h) \
(h == (h)->prev)