Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 6 Jun 2016 13:01:57 +0000 (UTC)
From:      "Bjoern A. Zeeb" <bz@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r301503 - head/sys/net
Message-ID:  <201606061301.u56D1vpu036881@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bz
Date: Mon Jun  6 13:01:57 2016
New Revision: 301503
URL: https://svnweb.freebsd.org/changeset/base/301503

Log:
  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

Modified:
  head/sys/net/pfil.c

Modified: head/sys/net/pfil.c
==============================================================================
--- head/sys/net/pfil.c	Mon Jun  6 12:49:47 2016	(r301502)
+++ head/sys/net/pfil.c	Mon Jun  6 13:01:57 2016	(r301503)
@@ -363,26 +363,24 @@ pfil_chain_remove(pfil_chain_t *chain, p
  * 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. */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201606061301.u56D1vpu036881>