From e6937b841bc4b079567cfb4d594d7a82a587f9be Mon Sep 17 00:00:00 2001 From: taca Date: Sat, 23 Mar 2002 15:38:22 +0000 Subject: [PATCH] Change devinfo definition and make devname initialization correctly. Those changes are referring with uplcom.c. I've checked with SUNTAC U-Cable type P1 that it responed to AT commands. --- sys/dev/usb/uvscom.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/dev/usb/uvscom.c b/sys/dev/usb/uvscom.c index 1817accd840b..c71bedea7b68 100644 --- a/sys/dev/usb/uvscom.c +++ b/sys/dev/usb/uvscom.c @@ -1,4 +1,4 @@ -/* $NetBSD: uvscom.c,v 1.3 2002/03/20 16:39:39 augustss Exp $ */ +/* $NetBSD: uvscom.c,v 1.4 2002/03/23 15:38:22 taca Exp $ */ /*- * Copyright (c) 2001-2002, Shunsuke Akiyama . * All rights reserved. @@ -266,8 +266,8 @@ USB_ATTACH(uvscom) usb_config_descriptor_t *cdesc; usb_interface_descriptor_t *id; usb_endpoint_descriptor_t *ed; - char *devinfo; - const char *devname; + char devinfo[1024]; + const char *devname = USBDEVNAME(sc->sc_dev); usbd_status err; int i; struct ucom_attach_args uca;