Module Name: src
Committed By: tsutsui
Date: Wed Sep 2 17:22:53 UTC 2009
Modified Files:
src/sys/arch/sgimips/mace: if_mec.c
src/sys/dev/ic: dp83932.c
Log Message:
Use a proper local variable.
To generate a diff of this commit:
cvs rdiff -u -r1.38 -r1.39 src/sys/arch/sgimips/mace/if_mec.c
cvs rdiff -u -r1.31 -r1.32 src/sys/dev/ic/dp83932.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/arch/sgimips/mace/if_mec.c
diff -u src/sys/arch/sgimips/mace/if_mec.c:1.38 src/sys/arch/sgimips/mace/if_mec.c:1.39
--- src/sys/arch/sgimips/mace/if_mec.c:1.38 Wed Sep 2 10:43:24 2009
+++ src/sys/arch/sgimips/mace/if_mec.c Wed Sep 2 17:22:53 2009
@@ -1,4 +1,4 @@
-/* $NetBSD: if_mec.c,v 1.38 2009/09/02 10:43:24 tsutsui Exp $ */
+/* $NetBSD: if_mec.c,v 1.39 2009/09/02 17:22:53 tsutsui Exp $ */
/*-
* Copyright (c) 2004, 2008 Izumi Tsutsui. All rights reserved.
@@ -61,7 +61,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_mec.c,v 1.38 2009/09/02 10:43:24 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_mec.c,v 1.39 2009/09/02 17:22:53 tsutsui Exp $");
#include "opt_ddb.h"
#include "bpfilter.h"
@@ -727,7 +727,7 @@
/* set shutdown hook to reset interface on powerdown */
if (pmf_device_register1(self, NULL, NULL, mec_shutdown))
- pmf_class_network_register(self, &sc->sc_ethercom.ec_if);
+ pmf_class_network_register(self, ifp);
else
aprint_error_dev(self, "couldn't establish power handler\n");
Index: src/sys/dev/ic/dp83932.c
diff -u src/sys/dev/ic/dp83932.c:1.31 src/sys/dev/ic/dp83932.c:1.32
--- src/sys/dev/ic/dp83932.c:1.31 Wed Sep 2 14:58:38 2009
+++ src/sys/dev/ic/dp83932.c Wed Sep 2 17:22:53 2009
@@ -1,4 +1,4 @@
-/* $NetBSD: dp83932.c,v 1.31 2009/09/02 14:58:38 tsutsui Exp $ */
+/* $NetBSD: dp83932.c,v 1.32 2009/09/02 17:22:53 tsutsui Exp $ */
/*-
* Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -35,7 +35,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: dp83932.c,v 1.31 2009/09/02 14:58:38 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: dp83932.c,v 1.32 2009/09/02 17:22:53 tsutsui Exp $");
#include "bpfilter.h"
@@ -223,7 +223,7 @@
* Make sure the interface is shutdown during reboot.
*/
if (pmf_device_register1(sc->sc_dev, NULL, NULL, sonic_shutdown))
- pmf_class_network_register(sc->sc_dev, &sc->sc_ethercom.ec_if);
+ pmf_class_network_register(sc->sc_dev, ifp);
else
aprint_error_dev(sc->sc_dev,
"couldn't establish power handler\n");