Source-Changes-HG archive

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

[src/trunk]: src/sys/net Fix LIST_FOREACH argument



details:   https://anonhg.NetBSD.org/src/rev/18cb8f10010e
branches:  trunk
changeset: 344334:18cb8f10010e
user:      ozaki-r <ozaki-r%NetBSD.org@localhost>
date:      Wed Mar 23 05:44:01 2016 +0000

description:
Fix LIST_FOREACH argument

diffstat:

 sys/net/if_bridge.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (31 lines):

diff -r e80f2305f1dd -r 18cb8f10010e sys/net/if_bridge.c
--- a/sys/net/if_bridge.c       Wed Mar 23 05:28:01 2016 +0000
+++ b/sys/net/if_bridge.c       Wed Mar 23 05:44:01 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_bridge.c,v 1.109 2016/03/23 04:56:21 ozaki-r Exp $  */
+/*     $NetBSD: if_bridge.c,v 1.110 2016/03/23 05:44:01 ozaki-r Exp $  */
 
 /*
  * Copyright 2001 Wasabi Systems, Inc.
@@ -80,7 +80,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_bridge.c,v 1.109 2016/03/23 04:56:21 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_bridge.c,v 1.110 2016/03/23 05:44:01 ozaki-r Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_bridge_ipf.h"
@@ -2234,10 +2234,10 @@
 static void
 bridge_rtdelete(struct bridge_softc *sc, struct ifnet *ifp)
 {
-       struct bridge_rtnode *brt, *nbrt;
+       struct bridge_rtnode *brt;
 
        BRIDGE_RT_LOCK(sc);
-       LIST_FOREACH(brt, &sc->sc_rtlist, brt_list, nbrt) {
+       LIST_FOREACH(brt, &sc->sc_rtlist, brt_list) {
                if (brt->brt_ifp == ifp)
                        break;
        }



Home | Main Index | Thread Index | Old Index