Merge pull request #386 from hayguen/master

fix/add missing 'LIBUSB_CALL' at libusb callback 'hackrf_libusb_trans…
This commit is contained in:
Dominic Spill
2017-06-22 10:28:30 -06:00
committed by GitHub

View File

@ -1429,7 +1429,7 @@ static void* transfer_threadproc(void* arg)
return NULL; return NULL;
} }
static void hackrf_libusb_transfer_callback(struct libusb_transfer* usb_transfer) static void LIBUSB_CALL hackrf_libusb_transfer_callback(struct libusb_transfer* usb_transfer)
{ {
hackrf_device* device = (hackrf_device*)usb_transfer->user_data; hackrf_device* device = (hackrf_device*)usb_transfer->user_data;
@ -1502,7 +1502,7 @@ static int create_transfer_thread(hackrf_device* device,
result = prepare_transfers( result = prepare_transfers(
device, endpoint_address, device, endpoint_address,
(libusb_transfer_cb_fn)hackrf_libusb_transfer_callback hackrf_libusb_transfer_callback
); );
if( result != HACKRF_SUCCESS ) if( result != HACKRF_SUCCESS )