Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/usbdevs Look for up to 16 USB controllers, to match...



details:   https://anonhg.NetBSD.org/src/rev/0738c736e7f4
branches:  trunk
changeset: 454561:0738c736e7f4
user:      gson <gson%NetBSD.org@localhost>
date:      Sat Sep 21 16:22:25 2019 +0000

description:
Look for up to 16 USB controllers, to match the number of device nodes
now created by MAKEDEV.

diffstat:

 usr.sbin/usbdevs/usbdevs.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 4e287bb5fa92 -r 0738c736e7f4 usr.sbin/usbdevs/usbdevs.c
--- a/usr.sbin/usbdevs/usbdevs.c        Sat Sep 21 15:56:09 2019 +0000
+++ b/usr.sbin/usbdevs/usbdevs.c        Sat Sep 21 16:22:25 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: usbdevs.c,v 1.36 2018/07/05 19:46:58 jmcneill Exp $    */
+/*     $NetBSD: usbdevs.c,v 1.37 2019/09/21 16:22:25 gson Exp $        */
 
 /*
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: usbdevs.c,v 1.36 2018/07/05 19:46:58 jmcneill Exp $");
+__RCSID("$NetBSD: usbdevs.c,v 1.37 2019/09/21 16:22:25 gson Exp $");
 #endif
 
 #include <stdio.h>
@@ -347,7 +347,7 @@
        argv += optind;
 
        if (dev == NULL) {
-               for (ncont = 0, i = 0; i < 10; i++) {
+               for (ncont = 0, i = 0; i < 16; i++) {
                        snprintf(buf, sizeof(buf), "%s%d", USBDEV, i);
                        f = open(buf, O_RDONLY);
                        if (f >= 0) {



Home | Main Index | Thread Index | Old Index