Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dist/pf/net remove unused variable to avoid warning from...
details: https://anonhg.NetBSD.org/src/rev/02d1eb5c58c8
branches: trunk
changeset: 327390:02d1eb5c58c8
user: nonaka <nonaka%NetBSD.org@localhost>
date: Thu Mar 06 15:21:58 2014 +0000
description:
remove unused variable to avoid warning from gcc 4.8.
diffstat:
sys/dist/pf/net/if_pfsync.c | 8 ++------
1 files changed, 2 insertions(+), 6 deletions(-)
diffs (50 lines):
diff -r 7da6b52bf82a -r 02d1eb5c58c8 sys/dist/pf/net/if_pfsync.c
--- a/sys/dist/pf/net/if_pfsync.c Thu Mar 06 15:00:21 2014 +0000
+++ b/sys/dist/pf/net/if_pfsync.c Thu Mar 06 15:21:58 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_pfsync.c,v 1.9 2012/03/22 20:34:38 drochner Exp $ */
+/* $NetBSD: if_pfsync.c,v 1.10 2014/03/06 15:21:58 nonaka Exp $ */
/* $OpenBSD: if_pfsync.c,v 1.83 2007/06/26 14:44:12 mcbride Exp $ */
/*
@@ -28,7 +28,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_pfsync.c,v 1.9 2012/03/22 20:34:38 drochner Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_pfsync.c,v 1.10 2014/03/06 15:21:58 nonaka Exp $");
#ifdef _KERNEL_OPT
#include "opt_inet.h"
@@ -1313,7 +1313,6 @@
int
pfsync_request_update(struct pfsync_state_upd *up, struct in_addr *src)
{
- struct ifnet *ifp = NULL;
struct pfsync_header *h;
struct pfsync_softc *sc = pfsyncif;
struct pfsync_state_upd_req *rup;
@@ -1322,7 +1321,6 @@
if (sc == NULL)
return (0);
- ifp = &sc->sc_if;
if (sc->sc_mbuf == NULL) {
if ((sc->sc_mbuf = pfsync_get_mbuf(sc, PFSYNC_ACT_UREQ,
(void *)&sc->sc_statep.s)) == NULL)
@@ -1359,7 +1357,6 @@
int
pfsync_clear_states(u_int32_t creatorid, char *ifname)
{
- struct ifnet *ifp = NULL;
struct pfsync_softc *sc = pfsyncif;
struct pfsync_state_clr *cp;
int s, ret;
@@ -1367,7 +1364,6 @@
if (sc == NULL)
return (0);
- ifp = &sc->sc_if;
s = splnet();
if (sc->sc_mbuf != NULL)
pfsync_sendout(sc);
Home |
Main Index |
Thread Index |
Old Index