From bb81fe937104c2742b86fbe1f35b69fbb9e3f905 Mon Sep 17 00:00:00 2001 From: n_hibma Date: Tue, 5 Oct 1999 20:35:32 +0000 Subject: Add SLIST_HEAD_INITIALIZER for static initialisation of SLISTs. --- sys/sys/queue.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'sys/sys/queue.h') 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 { \ -- cgit v1.1