Source-Changes-HG archive

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

[src/trunk]: src/sys/net adjust previous; old_link_state is also used in INET6.



details:   https://anonhg.NetBSD.org/src/rev/8c1bad6791fc
branches:  trunk
changeset: 790727:8c1bad6791fc
user:      mrg <mrg%NetBSD.org@localhost>
date:      Sat Oct 19 21:39:12 2013 +0000

description:
adjust previous; old_link_state is also used in INET6.

diffstat:

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

diffs (36 lines):

diff -r f216eb41df1a -r 8c1bad6791fc sys/net/if.c
--- a/sys/net/if.c      Sat Oct 19 21:01:39 2013 +0000
+++ b/sys/net/if.c      Sat Oct 19 21:39:12 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if.c,v 1.268 2013/10/19 18:39:30 martin Exp $  */
+/*     $NetBSD: if.c,v 1.269 2013/10/19 21:39:12 mrg Exp $     */
 
 /*-
  * Copyright (c) 1999, 2000, 2001, 2008 The NetBSD Foundation, Inc.
@@ -90,7 +90,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if.c,v 1.268 2013/10/19 18:39:30 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if.c,v 1.269 2013/10/19 21:39:12 mrg Exp $");
 
 #include "opt_inet.h"
 
@@ -1324,7 +1324,7 @@
 if_link_state_change(struct ifnet *ifp, int link_state)
 {
        int s;
-#ifdef DEBUG
+#if defined(DEBUG) || defined(INET6)
        int old_link_state;
 #endif
 
@@ -1334,7 +1334,7 @@
                return;
        }
 
-#ifdef DEBUG
+#if defined(DEBUG) || defined(INET6)
        old_link_state = ifp->if_link_state;
 #endif
        ifp->if_link_state = link_state;



Home | Main Index | Thread Index | Old Index