Fix build. trunk
authoruebayasi <uebayasi@NetBSD.org>
Mon, 27 Dec 2010 14:58:55 +0000
branchtrunk
changeset 196019 e3d6af3ee59c
parent 196018 c4d67b24f160
child 196020 e8c21139b805
Fix build.
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);