Set the pointer type, to make the compiler happy, otherwise it might

complain about the incompatible pointer types.
This commit is contained in:
Sebastian Zagrodzki
2017-02-13 19:14:43 +01:00
parent d4d7011a44
commit 1b4014cb28

View File

@@ -27,7 +27,7 @@ void callback(struct libusb_transfer *xfer) {
}
int submit(struct libusb_transfer *xfer) {
xfer->callback = &callback;
xfer->callback = (libusb_transfer_cb_fn)(&callback);
xfer->status = -1;
//print_xfer(xfer);
//printf("Transfer submitted\n");