summaryrefslogtreecommitdiff
path: root/lib/lists.h
diff options
context:
space:
mode:
authorMaria Matejka <mq@ucw.cz>2022-01-10 09:31:27 +0100
committerMaria Matejka <mq@ucw.cz>2022-02-03 10:30:33 +0100
commitfccaeb0141136b192884f76edd0a53575f47d87e (patch)
treeb883d8618192d3ec6b9b65caea6ca617241e49bc /lib/lists.h
parent8447b24e59bcb6bf1f5d0c2a00880b74bde748fd (diff)
BGP: Static global linpools replaced by private linpools
Diffstat (limited to 'lib/lists.h')
-rw-r--r--lib/lists.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/lists.h b/lib/lists.h
index dc49ec8a..f36c051c 100644
--- a/lib/lists.h
+++ b/lib/lists.h
@@ -42,6 +42,7 @@ typedef union list { /* In fact two overlayed nodes */
};
} list;
+#define STATIC_LIST_INIT(name) name = { .head = &name.tail_node, .tail = &name.head_node, .null = NULL }
#define NODE (node *)
#define HEAD(list) ((void *)((list).head))