Module Name: src Committed By: mrg Date: Sat Oct 19 21:39:12 UTC 2013
Modified Files: src/sys/net: if.c Log Message: adjust previous; old_link_state is also used in INET6. To generate a diff of this commit: cvs rdiff -u -r1.268 -r1.269 src/sys/net/if.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/net/if.c diff -u src/sys/net/if.c:1.268 src/sys/net/if.c:1.269 --- src/sys/net/if.c:1.268 Sat Oct 19 18:39:30 2013 +++ src/sys/net/if.c Sat Oct 19 21:39:12 2013 @@ -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 @@ void 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 @@ if_link_state_change(struct ifnet *ifp, return; } -#ifdef DEBUG +#if defined(DEBUG) || defined(INET6) old_link_state = ifp->if_link_state; #endif ifp->if_link_state = link_state;