diff options
author | antoine <antoine@FreeBSD.org> | 2009-12-28 22:56:30 +0000 |
---|---|---|
committer | antoine <antoine@FreeBSD.org> | 2009-12-28 22:56:30 +0000 |
commit | bfd388c026e6aeb5427df50347b59d62feb3072e (patch) | |
tree | 368556d68241b943dc9c2ec710bd21f97a0e608d /sys/kern | |
parent | 2414a09002c0b7080b6044e995d127de758f3e12 (diff) | |
download | FreeBSD-src-bfd388c026e6aeb5427df50347b59d62feb3072e.zip FreeBSD-src-bfd388c026e6aeb5427df50347b59d62feb3072e.tar.gz |
(S)LIST_HEAD_INITIALIZER takes a (S)LIST_HEAD as an argument.
Fix some wrong usages.
Note: this does not affect generated binaries as this argument is not used.
PR: 137213
Submitted by: Eygene Ryabinkin (initial version)
MFC after: 1 month
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/kern_conf.c | 2 | ||||
-rw-r--r-- | sys/kern/kern_jail.c | 2 | ||||
-rw-r--r-- | sys/kern/uipc_accf.c | 2 | ||||
-rw-r--r-- | sys/kern/vfs_mount.c | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/sys/kern/kern_conf.c b/sys/kern/kern_conf.c index 8504e48..e570fdd 100644 --- a/sys/kern/kern_conf.c +++ b/sys/kern/kern_conf.c @@ -63,7 +63,7 @@ static struct cdev *make_dev_credv(int flags, static struct cdev_priv_list cdevp_free_list = TAILQ_HEAD_INITIALIZER(cdevp_free_list); static SLIST_HEAD(free_cdevsw, cdevsw) cdevsw_gt_post_list = - SLIST_HEAD_INITIALIZER(); + SLIST_HEAD_INITIALIZER(cdevsw_gt_post_list); void dev_lock(void) diff --git a/sys/kern/kern_jail.c b/sys/kern/kern_jail.c index 0900541..7ee68c4 100644 --- a/sys/kern/kern_jail.c +++ b/sys/kern/kern_jail.c @@ -87,7 +87,7 @@ struct prison prison0 = { .pr_securelevel = -1, .pr_childmax = JAIL_MAX, .pr_hostuuid = DEFAULT_HOSTUUID, - .pr_children = LIST_HEAD_INITIALIZER(&prison0.pr_children), + .pr_children = LIST_HEAD_INITIALIZER(prison0.pr_children), #ifdef VIMAGE .pr_flags = PR_HOST|PR_VNET, #else diff --git a/sys/kern/uipc_accf.c b/sys/kern/uipc_accf.c index 102c04f..236b60d 100644 --- a/sys/kern/uipc_accf.c +++ b/sys/kern/uipc_accf.c @@ -54,7 +54,7 @@ MTX_SYSINIT(accept_filter, &accept_filter_mtx, "accept_filter_mtx", #define ACCEPT_FILTER_UNLOCK() mtx_unlock(&accept_filter_mtx) static SLIST_HEAD(, accept_filter) accept_filtlsthd = - SLIST_HEAD_INITIALIZER(&accept_filtlsthd); + SLIST_HEAD_INITIALIZER(accept_filtlsthd); MALLOC_DEFINE(M_ACCF, "accf", "accept filter data"); diff --git a/sys/kern/vfs_mount.c b/sys/kern/vfs_mount.c index 962ad67..b443152 100644 --- a/sys/kern/vfs_mount.c +++ b/sys/kern/vfs_mount.c @@ -1354,7 +1354,7 @@ struct root_hold_token { }; static LIST_HEAD(, root_hold_token) root_holds = - LIST_HEAD_INITIALIZER(&root_holds); + LIST_HEAD_INITIALIZER(root_holds); static int root_mount_complete; |