Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/net/npf Ifdef npf_init() the same way as all it's caller...



details:   https://anonhg.NetBSD.org/src/rev/75dccb8df6d2
branches:  trunk
changeset: 341125:75dccb8df6d2
user:      martin <martin%NetBSD.org@localhost>
date:      Mon Oct 19 09:28:24 2015 +0000

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

diffstat:

 sys/net/npf/npf.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (34 lines):

diff -r 4d86ca2ff765 -r 75dccb8df6d2 sys/net/npf/npf.c
--- a/sys/net/npf/npf.c Mon Oct 19 04:22:28 2015 +0000
+++ b/sys/net/npf/npf.c Mon Oct 19 09:28:24 2015 +0000
@@ -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 @@
        .d_flag = D_OTHER | D_MPSAFE
 };
 
+#if !defined(MODULAR) || defined(_MODULE)
 static int
 npf_init(void)
 {
@@ -136,6 +137,7 @@
        return 0;
 #endif
 }
+#endif
 
 static int
 npf_fini(void)



Home | Main Index | Thread Index | Old Index