equal
deleted
inserted
replaced
|
1 struct and USBCONSTISSUE cause usb_bulk_write and usb_interrupt_write in |
|
2 libopenusb-1.1.11/src/emulation.c to mismatch the usb_bulk_write and usb_interrupt_write |
|
3 declarations in /usr/include/usb.h. struct and USBCONSTISSUE have thus been removed |
|
4 to resolve this issue. This patch is not planned to be submitted upstream. |
|
5 |
|
6 --- libopenusb-1.1.11/src/emulation.c_orig 2016-11-10 13:29:36.583852896 +0000 |
|
7 +++ libopenusb-1.1.11/src/emulation.c 2016-11-10 13:30:33.154618185 +0000 |
|
8 @@ -635,7 +635,7 @@ |
|
9 return(bulk.result.transferred_bytes); |
|
10 } |
|
11 |
|
12 -int usb_bulk_write(struct usb_dev_handle *dev, int ep, USBCONSTISSUE char *bytes, int size, |
|
13 +int usb_bulk_write(usb_dev_handle *dev, int ep, char *bytes, int size, |
|
14 int timeout) |
|
15 { |
|
16 return (usb0_bulk_xfer(dev, ep, (char*)bytes, size, timeout)); |
|
17 @@ -678,7 +678,7 @@ |
|
18 return(intr.result.transferred_bytes); |
|
19 } |
|
20 |
|
21 -int usb_interrupt_write(usb_dev_handle *dev, int ep, USBCONSTISSUE char *bytes, int size, |
|
22 +int usb_interrupt_write(usb_dev_handle *dev, int ep, char *bytes, int size, |
|
23 int timeout) |
|
24 { |
|
25 return (usb0_intr_xfer(dev, ep, (char*)bytes, size, timeout)); |