From owner-freebsd-usb@FreeBSD.ORG Sun May 8 13:50:03 2005 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 166B216A4E2 for ; Sun, 8 May 2005 13:50:03 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id D37DC43D73 for ; Sun, 8 May 2005 13:50:02 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j48Do2R4004279 for ; Sun, 8 May 2005 13:50:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j48Do2ip004278; Sun, 8 May 2005 13:50:02 GMT (envelope-from gnats) Resent-Date: Sun, 8 May 2005 13:50:02 GMT Resent-Message-Id: <200505081350.j48Do2ip004278@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-usb@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, hselasky@c2i.net Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2B62E16A4E2 for ; Sun, 8 May 2005 13:43:58 +0000 (GMT) Received: from swip.net (mailfe05.swip.net [212.247.154.129]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8F0B843DAA for ; Sun, 8 May 2005 13:43:57 +0000 (GMT) (envelope-from hselasky@c2i.net) Received: from mp-217-229-50.daxnet.no ([193.217.229.50] verified) by mailfe05.swip.net (CommuniGate Pro SMTP 4.3c5) with ESMTP id 163787790 for FreeBSD-gnats-submit@freebsd.org; Sun, 08 May 2005 15:43:53 +0200 Message-Id: <200505081544.37993.hselasky@c2i.net> Date: Sun, 8 May 2005 15:44:37 +0200 From: Hans Petter Selasky To: FreeBSD-gnats-submit@FreeBSD.org Subject: usb/80774: have "usbd_find_desc" in line with the other "usbd_find_xxx" X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: hselasky@c2i.net List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 May 2005 13:50:03 -0000 >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: