Date: Sun, 8 May 2005 15:44:37 +0200 From: Hans Petter Selasky <hselasky@c2i.net> To: FreeBSD-gnats-submit@FreeBSD.org Subject: usb/80774: have "usbd_find_desc" in line with the other "usbd_find_xxx" Message-ID: <200505081544.37993.hselasky@c2i.net> Resent-Message-ID: <200505081350.j48Do2ip004278@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 80774 >Category: usb >Synopsis: have "usbd_find_desc" in line with the other "usbd_find_xxx" >Confidential: no >Severity: critical >Priority: medium >Responsible: freebsd-usb >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun May 08 13:50:02 GMT 2005 >Closed-Date: >Last-Modified: >Originator: HPS >Release: FreeBSD 6.0-CURRENT i386 >Organization: >Environment: System: FreeBSD 6.0-CURRENT FreeBSD 6.0-CURRENT #45: Mon Mar 21 15:40:17 CET 2005 root@:/usr/obj/usr/src/sys/custom i386 >Description: "usbd_find_desc()" was put into the wrong file. The function belongs together with "usbd_find_edesc()" and "usbd_find_idesc()" and should take "usb_config_descriptor_t *" as argument. >How-To-Repeat: >Fix: const usb_descriptor_t *usb_find_desc(usbd_device_handle dev, int type, int subtype); #define USBD_SUBTYPE_ANY (~0) /* XXX mixing signed and unsigned types is not good */ changed into: usb_descriptor_t *usb_find_desc(usb_config_descriptor_t *, int type, int subtype); #define USBD_SUBTYPE_ANY (-1) Usage: "usb_find_desc(usbd_get_config_descriptor(udev), ... );" >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200505081544.37993.hselasky>