summaryrefslogtreecommitdiffstats
path: root/sys/sys/queue.h
diff options
context:
space:
mode:
authorn_hibma <n_hibma@FreeBSD.org>1999-10-05 20:35:32 +0000
committern_hibma <n_hibma@FreeBSD.org>1999-10-05 20:35:32 +0000
commitbb81fe937104c2742b86fbe1f35b69fbb9e3f905 (patch)
treeff8cdacb0297bad83474cca1b4d2503b27a89c52 /sys/sys/queue.h
parent389798d4c2279c25ae52703484d45e7d27fe7c54 (diff)
downloadFreeBSD-src-bb81fe937104c2742b86fbe1f35b69fbb9e3f905.zip
FreeBSD-src-bb81fe937104c2742b86fbe1f35b69fbb9e3f905.tar.gz
Add SLIST_HEAD_INITIALIZER for static initialisation of SLISTs.
Diffstat (limited to 'sys/sys/queue.h')
-rw-r--r--sys/sys/queue.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/sys/queue.h b/sys/sys/queue.h
index e03ed9b..0da19f7 100644
--- a/sys/sys/queue.h
+++ b/sys/sys/queue.h
@@ -113,6 +113,9 @@
struct name { \
struct type *slh_first; /* first element */ \
}
+
+#define SLIST_HEAD_INITIALIZER(head) \
+ { NULL }
#define SLIST_ENTRY(type) \
struct { \
OpenPOWER on IntegriCloud