usb/150546: libusb(3) libusb_control_transfer() prototype is incorrect

Hans Petter Selasky hselasky at c2i.net
Tue Sep 14 19:50:15 UTC 2010


On Tuesday 14 September 2010 02:52:39 Robert Jenssen wrote:
> >Number:         150546
> >Category:       usb
> >Synopsis:       libusb(3) libusb_control_transfer() prototype is incorrect
> >Confidential:   no
> >Severity:       non-critical
> >Priority:       low
> >Responsible:    freebsd-usb
> >State:          open
> >Quarter:
> >Keywords:
> >Date-Required:
> >Class:          doc-bug
> >Submitter-Id:   current-users
> >Arrival-Date:   Tue Sep 14 01:00:03 UTC 2010
> >Closed-Date:
> >Last-Modified:
> >Originator:     Robert Jenssen
> >Release:        8-Stable
> 
> >Organization:
> IPS radio and space services
> 
> >Environment:
> FreeBSD xxxx 8.1-STABLE FreeBSD 8.1-STABLE #0: Thu Sep  9 09:41:10 EST 2010
> root at xxxx:/usr/obj/usr/src/sys/ECLIPSE i386
> 
> >Description:
> In the libusb(3) man page the prototype of libusb_control_transfer is:
> 
> int libusb_control_transfer(libusb_device_handle *devh, uint8_t
>      bmRequestType, uint16_t wIndex, unsigned char *data, uint16_t wLength,
>      unsigned int timeout)
> 
> In /usr/include/libusb.h the prototype of libusb_control_transfer is:
> 
> int	libusb_control_transfer(libusb_device_handle * devh, uint8_t
> bmRequestType, uint8_t bRequest, uint16_t wValue, uint16_t wIndex, uint8_t
> *data, uint16_t wLength, uint32_t timeout);
> 
> >How-To-Repeat:
> 
> >Fix:

See USB P4 change #183770.

--HPS


More information about the freebsd-usb mailing list