Module Name:    src
Committed By:   martin
Date:           Mon Oct 19 09:28:25 UTC 2015

Modified Files:
        src/sys/net/npf: npf.c

Log Message:
Ifdef npf_init() the same way as all it's callers are protected.


To generate a diff of this commit:
cvs rdiff -u -r1.27 -r1.28 src/sys/net/npf/npf.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/net/npf/npf.c
diff -u src/sys/net/npf/npf.c:1.27 src/sys/net/npf/npf.c:1.28
--- src/sys/net/npf/npf.c:1.27	Mon Oct 19 00:29:57 2015
+++ src/sys/net/npf/npf.c	Mon Oct 19 09:28:24 2015
@@ -1,4 +1,4 @@
-/*	$NetBSD: npf.c,v 1.27 2015/10/19 00:29:57 christos Exp $	*/
+/*	$NetBSD: npf.c,v 1.28 2015/10/19 09:28:24 martin Exp $	*/
 
 /*-
  * Copyright (c) 2009-2013 The NetBSD Foundation, Inc.
@@ -34,7 +34,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: npf.c,v 1.27 2015/10/19 00:29:57 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: npf.c,v 1.28 2015/10/19 09:28:24 martin Exp $");
 
 #include <sys/param.h>
 #include <sys/types.h>
@@ -102,6 +102,7 @@ const struct cdevsw npf_cdevsw = {
 	.d_flag = D_OTHER | D_MPSAFE
 };
 
+#if !defined(MODULAR) || defined(_MODULE)
 static int
 npf_init(void)
 {
@@ -136,6 +137,7 @@ npf_init(void)
 	return 0;
 #endif
 }
+#endif
 
 static int
 npf_fini(void)

Reply via email to