Source-Changes-HG archive

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

[src/trunk]: src/sys/net/npf Fix build.



details:   https://anonhg.NetBSD.org/src/rev/d15ada993b7e
branches:  trunk
changeset: 760108:d15ada993b7e
user:      uebayasi <uebayasi%NetBSD.org@localhost>
date:      Mon Dec 27 14:58:55 2010 +0000

description:
Fix build.

diffstat:

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

diffs (28 lines):

diff -r 62301f3b23f1 -r d15ada993b7e sys/net/npf/npf_ruleset.c
--- a/sys/net/npf/npf_ruleset.c Mon Dec 27 10:58:27 2010 +0000
+++ b/sys/net/npf/npf_ruleset.c Mon Dec 27 14:58:55 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: npf_ruleset.c,v 1.4 2010/12/18 01:07:25 rmind Exp $    */
+/*     $NetBSD: npf_ruleset.c,v 1.5 2010/12/27 14:58:55 uebayasi Exp $ */
 
 /*-
  * Copyright (c) 2009-2010 The NetBSD Foundation, Inc.
@@ -35,7 +35,7 @@
 
 #ifdef _KERNEL
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: npf_ruleset.c,v 1.4 2010/12/18 01:07:25 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: npf_ruleset.c,v 1.5 2010/12/27 14:58:55 uebayasi Exp $");
 
 #include <sys/param.h>
 #include <sys/kernel.h>
@@ -276,7 +276,9 @@
 {
        npf_rule_t *rl;
        prop_object_t obj;
+#ifdef DIAGNOSTIC
        int errat;
+#endif
 
        /* Allocate a rule structure. */
        rl = kmem_alloc(sizeof(npf_rule_t), KM_SLEEP);



Home | Main Index | Thread Index | Old Index