From: guenther Date: Fri, 26 Aug 2016 07:12:30 +0000 (+0000) Subject: The *_HEAD_INITIALIZER() macros are documented as taking the struct, X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=a824c4436b869bc71023d593f0a90357df4bc246;p=openbsd The *_HEAD_INITIALIZER() macros are documented as taking the struct, not a pointer to it --- diff --git a/sys/kern/uipc_usrreq.c b/sys/kern/uipc_usrreq.c index 6e3d08fe398..e0f7f27d944 100644 --- a/sys/kern/uipc_usrreq.c +++ b/sys/kern/uipc_usrreq.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uipc_usrreq.c,v 1.101 2016/08/17 13:53:14 bluhm Exp $ */ +/* $OpenBSD: uipc_usrreq.c,v 1.102 2016/08/26 07:12:30 guenther Exp $ */ /* $NetBSD: uipc_usrreq.c,v 1.18 1996/02/09 19:00:50 christos Exp $ */ /* @@ -54,7 +54,7 @@ void uipc_setaddr(const struct unpcb *, struct mbuf *); /* list of all UNIX domain sockets, for unp_gc() */ -LIST_HEAD(unp_head, unpcb) unp_head = LIST_HEAD_INITIALIZER(&unp_head); +LIST_HEAD(unp_head, unpcb) unp_head = LIST_HEAD_INITIALIZER(unp_head); /* * Stack of sets of files that were passed over a socket but were @@ -68,7 +68,7 @@ struct unp_deferral { }; /* list of sets of files that were sent over sockets that are now closed */ -SLIST_HEAD(,unp_deferral) unp_deferred = SLIST_HEAD_INITIALIZER(&unp_deferred); +SLIST_HEAD(,unp_deferral) unp_deferred = SLIST_HEAD_INITIALIZER(unp_deferred); struct task unp_gc_task = TASK_INITIALIZER(unp_gc, NULL);