Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/usb move compat var in compat code.



details:   https://anonhg.NetBSD.org/src/rev/41562538711d
branches:  trunk
changeset: 790626:41562538711d
user:      christos <christos%NetBSD.org@localhost>
date:      Fri Oct 18 19:54:56 2013 +0000

description:
move compat var in compat code.

diffstat:

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

diffs (34 lines):

diff -r a942a804be82 -r 41562538711d sys/dev/usb/usb.c
--- a/sys/dev/usb/usb.c Fri Oct 18 19:53:59 2013 +0000
+++ b/sys/dev/usb/usb.c Fri Oct 18 19:54:56 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: usb.c,v 1.145 2013/10/12 16:49:01 christos Exp $       */
+/*     $NetBSD: usb.c,v 1.146 2013/10/18 19:54:56 christos Exp $       */
 
 /*
  * Copyright (c) 1998, 2002, 2008, 2012 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: usb.c,v 1.145 2013/10/12 16:49:01 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: usb.c,v 1.146 2013/10/18 19:54:56 christos Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_compat_netbsd.h"
@@ -507,13 +507,13 @@
        struct usb_event *ue;
 #ifdef COMPAT_30
        struct usb_event_old *ueo = NULL;       /* XXXGCC */
+       int useold = 0;
 #endif
-       int error, n, useold;
+       int error, n;
 
        if (minor(dev) != USB_DEV_MINOR)
                return (ENXIO);
 
-       useold = 0;
        switch (uio->uio_resid) {
 #ifdef COMPAT_30
        case sizeof(struct usb_event_old):



Home | Main Index | Thread Index | Old Index