From 1b4014cb28713c2b717251ea1fe8776b73eff5a6 Mon Sep 17 00:00:00 2001 From: Sebastian Zagrodzki Date: Mon, 13 Feb 2017 19:14:43 +0100 Subject: [PATCH] Set the pointer type, to make the compiler happy, otherwise it might complain about the incompatible pointer types. --- usb/iso.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usb/iso.c b/usb/iso.c index cfca006..97e8c71 100644 --- a/usb/iso.c +++ b/usb/iso.c @@ -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");