fix/add missing 'LIBUSB_CALL' at libusb callback 'hackrf_libusb_transfer_callback'

this allows to remove function cast at prepare_transfers()
missing 'LIBUSB_CALL' produced problems in debugger with Visual Studio 2017

Signed-off-by: hayati ayguen <h_ayguen@web.de>
This commit is contained in:
hayati ayguen
2017-06-18 23:52:23 +02:00
parent 72a03cffa8
commit e707e448d3

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 )