Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/xen/xen In xennet_ioctl, we need a declaration for ...



details:   https://anonhg.NetBSD.org/src/rev/92f643631740
branches:  trunk
changeset: 579576:92f643631740
user:      cube <cube%NetBSD.org@localhost>
date:      Fri Mar 18 11:15:40 2005 +0000

description:
In xennet_ioctl, we need a declaration for sc when debugging macros are
active.  Reported on current-users by Teemu Rinta-aho.

diffstat:

 sys/arch/xen/xen/if_xennet.c |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (28 lines):

diff -r 530ef2b2cc9d -r 92f643631740 sys/arch/xen/xen/if_xennet.c
--- a/sys/arch/xen/xen/if_xennet.c      Fri Mar 18 11:11:50 2005 +0000
+++ b/sys/arch/xen/xen/if_xennet.c      Fri Mar 18 11:15:40 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_xennet.c,v 1.14 2005/03/17 22:30:17 bouyer Exp $    */
+/*     $NetBSD: if_xennet.c,v 1.15 2005/03/18 11:15:40 cube Exp $      */
 
 /*
  *
@@ -33,7 +33,7 @@
 
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_xennet.c,v 1.14 2005/03/17 22:30:17 bouyer Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_xennet.c,v 1.15 2005/03/18 11:15:40 cube Exp $");
 
 #include "opt_inet.h"
 #include "rnd.h"
@@ -1105,6 +1105,9 @@
 #ifdef mediacode
        struct ifreq *ifr = (struct ifreq *)data;
 #endif
+#ifdef XENNET_DEBUG
+       struct xennet_softc *sc = ifp->if_softc;
+#endif
        int s, error = 0;
 
        s = splnet();



Home | Main Index | Thread Index | Old Index