diff options
Diffstat (limited to 'examples/dpfp_threaded.c')
-rw-r--r-- | examples/dpfp_threaded.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/dpfp_threaded.c b/examples/dpfp_threaded.c index e1df6ee..c8cbb28 100644 --- a/examples/dpfp_threaded.c +++ b/examples/dpfp_threaded.c @@ -193,7 +193,7 @@ static void LIBUSB_CALL cb_mode_changed(struct libusb_transfer *transfer) static int set_mode_async(unsigned char data) { - unsigned char *buf = malloc(LIBUSB_CONTROL_SETUP_SIZE + 1); + unsigned char *buf = (unsigned char*) malloc(LIBUSB_CONTROL_SETUP_SIZE + 1); struct libusb_transfer *transfer; if (!buf) |