Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/usb subdevlen is an array length, make it unsigned



details:   https://anonhg.NetBSD.org/src/rev/cc9b21eca87d
branches:  trunk
changeset: 1003682:cc9b21eca87d
user:      christos <christos%NetBSD.org@localhost>
date:      Thu Sep 26 01:35:08 2019 +0000

description:
subdevlen is an array length, make it unsigned

diffstat:

 sys/dev/usb/usbdivar.h |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r af92534ddf73 -r cc9b21eca87d sys/dev/usb/usbdivar.h
--- a/sys/dev/usb/usbdivar.h    Thu Sep 26 01:34:16 2019 +0000
+++ b/sys/dev/usb/usbdivar.h    Thu Sep 26 01:35:08 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: usbdivar.h,v 1.118 2019/01/27 02:08:42 pgoyette Exp $  */
+/*     $NetBSD: usbdivar.h,v 1.119 2019/09/26 01:35:08 christos Exp $  */
 
 /*
  * Copyright (c) 1998, 2012 The NetBSD Foundation, Inc.
@@ -203,7 +203,7 @@
        const struct usbd_quirks
                               *ud_quirks;      /* device quirks, always set */
        struct usbd_hub        *ud_hub;         /* only if this is a hub */
-       int                     ud_subdevlen;   /* array length of following */
+       u_int                   ud_subdevlen;   /* array length of following */
        device_t               *ud_subdevs;     /* sub-devices */
        int                     ud_nifaces_claimed; /* number of ifaces in use */
        void                   *ud_hcpriv;



Home | Main Index | Thread Index | Old Index