diff options
author | n_hibma <n_hibma@FreeBSD.org> | 1999-10-05 20:35:32 +0000 |
---|---|---|
committer | n_hibma <n_hibma@FreeBSD.org> | 1999-10-05 20:35:32 +0000 |
commit | bb81fe937104c2742b86fbe1f35b69fbb9e3f905 (patch) | |
tree | ff8cdacb0297bad83474cca1b4d2503b27a89c52 | |
parent | 389798d4c2279c25ae52703484d45e7d27fe7c54 (diff) | |
download | FreeBSD-src-bb81fe937104c2742b86fbe1f35b69fbb9e3f905.zip FreeBSD-src-bb81fe937104c2742b86fbe1f35b69fbb9e3f905.tar.gz |
Add SLIST_HEAD_INITIALIZER for static initialisation of SLISTs.
-rw-r--r-- | sys/sys/queue.h | 3 |
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 { \ |