summaryrefslogtreecommitdiff
path: root/libusb/sync.c
diff options
context:
space:
mode:
Diffstat (limited to 'libusb/sync.c')
-rw-r--r--libusb/sync.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/libusb/sync.c b/libusb/sync.c
index 8c3f0a0..f6dc2a7 100644
--- a/libusb/sync.c
+++ b/libusb/sync.c
@@ -69,7 +69,7 @@ static void LIBUSB_CALL ctrl_transfer_cb(struct libusb_transfer *transfer)
* \returns LIBUSB_ERROR_NO_DEVICE if the device has been disconnected
* \returns another LIBUSB_ERROR code on other failures
*/
-API_EXPORTED int LIBUSB_CALL libusb_control_transfer(libusb_device_handle *dev_handle,
+int API_EXPORTED libusb_control_transfer(libusb_device_handle *dev_handle,
uint8_t bmRequestType, uint8_t bRequest, uint16_t wValue, uint16_t wIndex,
unsigned char *data, uint16_t wLength, unsigned int timeout)
{
@@ -252,7 +252,7 @@ static int do_sync_bulk_transfer(struct libusb_device_handle *dev_handle,
* \returns LIBUSB_ERROR_NO_DEVICE if the device has been disconnected
* \returns another LIBUSB_ERROR code on other failures
*/
-API_EXPORTED int LIBUSB_CALL libusb_bulk_transfer(struct libusb_device_handle *dev_handle,
+int API_EXPORTED libusb_bulk_transfer(struct libusb_device_handle *dev_handle,
unsigned char endpoint, unsigned char *data, int length, int *transferred,
unsigned int timeout)
{
@@ -301,11 +301,10 @@ API_EXPORTED int LIBUSB_CALL libusb_bulk_transfer(struct libusb_device_handle *d
* \returns LIBUSB_ERROR_NO_DEVICE if the device has been disconnected
* \returns another LIBUSB_ERROR code on other error
*/
-API_EXPORTED int LIBUSB_CALL libusb_interrupt_transfer(
+int API_EXPORTED libusb_interrupt_transfer(
struct libusb_device_handle *dev_handle, unsigned char endpoint,
unsigned char *data, int length, int *transferred, unsigned int timeout)
{
return do_sync_bulk_transfer(dev_handle, endpoint, data, length,
transferred, timeout, LIBUSB_TRANSFER_TYPE_INTERRUPT);
}
-