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 module build



details:   https://anonhg.NetBSD.org/src/rev/64f80e11e8ba
branches:  trunk
changeset: 764500:64f80e11e8ba
user:      yamt <yamt%NetBSD.org@localhost>
date:      Mon Apr 25 22:16:21 2011 +0000

description:
fix module build

diffstat:

 sys/net/npf/npf.c       |   5 +++--
 sys/net/npf/npf_state.c |  10 ++++------
 2 files changed, 7 insertions(+), 8 deletions(-)

diffs (65 lines):

diff -r 3d410f4509a5 -r 64f80e11e8ba sys/net/npf/npf.c
--- a/sys/net/npf/npf.c Mon Apr 25 22:14:45 2011 +0000
+++ b/sys/net/npf/npf.c Mon Apr 25 22:16:21 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: npf.c,v 1.4 2011/02/02 02:20:25 rmind Exp $    */
+/*     $NetBSD: npf.c,v 1.5 2011/04/25 22:16:21 yamt Exp $     */
 
 /*-
  * Copyright (c) 2009-2010 The NetBSD Foundation, Inc.
@@ -34,7 +34,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: npf.c,v 1.4 2011/02/02 02:20:25 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: npf.c,v 1.5 2011/04/25 22:16:21 yamt Exp $");
 
 #include <sys/param.h>
 #include <sys/types.h>
@@ -59,6 +59,7 @@
 
 void           npfattach(int);
 
+static int     npf_fini(void);
 static int     npf_dev_open(dev_t, int, int, lwp_t *);
 static int     npf_dev_close(dev_t, int, int, lwp_t *);
 static int     npf_dev_ioctl(dev_t, u_long, void *, int, lwp_t *);
diff -r 3d410f4509a5 -r 64f80e11e8ba sys/net/npf/npf_state.c
--- a/sys/net/npf/npf_state.c   Mon Apr 25 22:14:45 2011 +0000
+++ b/sys/net/npf/npf_state.c   Mon Apr 25 22:16:21 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: npf_state.c,v 1.3 2011/01/18 20:33:46 rmind Exp $      */
+/*     $NetBSD: npf_state.c,v 1.4 2011/04/25 22:16:21 yamt Exp $       */
 
 /*-
  * Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -34,7 +34,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: npf_state.c,v 1.3 2011/01/18 20:33:46 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: npf_state.c,v 1.4 2011/04/25 22:16:21 yamt Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -404,11 +404,10 @@
        return expire_table[proto];
 }
 
-#if defined(DDB) || defined(_NPF_TESTING)
-
 void
 npf_state_dump(npf_state_t *nst)
 {
+#if defined(DDB) || defined(_NPF_TESTING)
        npf_tcpstate_t *fst = &nst->nst_tcpst[0], *tst = &nst->nst_tcpst[1];
 
        printf("\tstate (%p) %d:\n\t\t"
@@ -418,6 +417,5 @@
            fst->nst_seqend, fst->nst_ackend, fst->nst_maxwin, fst->nst_wscale,
            tst->nst_seqend, tst->nst_ackend, tst->nst_maxwin, tst->nst_wscale
        );
+#endif
 }
-
-#endif



Home | Main Index | Thread Index | Old Index