diff options
author | bz <bz@FreeBSD.org> | 2016-06-06 13:01:57 +0000 |
---|---|---|
committer | bz <bz@FreeBSD.org> | 2016-06-06 13:01:57 +0000 |
commit | dc7aa8b62116cd46795e20649d7414e73e19b03b (patch) | |
tree | a0831b9ddf5a6a7d72fa5b71dac3469e39657776 /sys/net | |
parent | 8757b6342b889322044da2baa3094d31efba5d42 (diff) | |
download | FreeBSD-src-dc7aa8b62116cd46795e20649d7414e73e19b03b.zip FreeBSD-src-dc7aa8b62116cd46795e20649d7414e73e19b03b.tar.gz |
SYSINIT functions do not return a value; switch to void, remove
the return value, and mark the unused argument __unused.
Obtained from: projects/vnet
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'sys/net')
-rw-r--r-- | sys/net/pfil.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/sys/net/pfil.c b/sys/net/pfil.c index 2494dea..248d183 100644 --- a/sys/net/pfil.c +++ b/sys/net/pfil.c @@ -363,26 +363,24 @@ pfil_chain_remove(pfil_chain_t *chain, pfil_func_t func, void *arg) * Stuff that must be initialized for every instance (including the first of * course). */ -static int -vnet_pfil_init(const void *unused) +static void +vnet_pfil_init(const void *unused __unused) { LIST_INIT(&V_pfil_head_list); PFIL_LOCK_INIT_REAL(&V_pfil_lock, "shared"); - return (0); } /* * Called for the removal of each instance. */ -static int -vnet_pfil_uninit(const void *unused) +static void +vnet_pfil_uninit(const void *unused __unused) { KASSERT(LIST_EMPTY(&V_pfil_head_list), ("%s: pfil_head_list %p not empty", __func__, &V_pfil_head_list)); PFIL_LOCK_DESTROY_REAL(&V_pfil_lock); - return (0); } /* Define startup order. */ |