Set the pointer type, to make the compiler happy, otherwise it might
complain about the incompatible pointer types.
This commit is contained in:
@@ -27,7 +27,7 @@ void callback(struct libusb_transfer *xfer) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
int submit(struct libusb_transfer *xfer) {
|
int submit(struct libusb_transfer *xfer) {
|
||||||
xfer->callback = &callback;
|
xfer->callback = (libusb_transfer_cb_fn)(&callback);
|
||||||
xfer->status = -1;
|
xfer->status = -1;
|
||||||
//print_xfer(xfer);
|
//print_xfer(xfer);
|
||||||
//printf("Transfer submitted\n");
|
//printf("Transfer submitted\n");
|
||||||
|
Reference in New Issue
Block a user