From 25b00bc4836f40ceb6e97c706b9076d4845be8cc Mon Sep 17 00:00:00 2001 From: Armin Novak Date: Wed, 7 Dec 2022 09:59:59 +0100 Subject: [PATCH] [channel,urbdrc] fix type of usb hotplug callback The libusb_hotplug_callback_fn uses LIBUSB_CALL call type --- channels/urbdrc/client/libusb/libusb_udevman.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/channels/urbdrc/client/libusb/libusb_udevman.c b/channels/urbdrc/client/libusb/libusb_udevman.c index d269819ae..ebe31daf9 100644 --- a/channels/urbdrc/client/libusb/libusb_udevman.c +++ b/channels/urbdrc/client/libusb/libusb_udevman.c @@ -578,8 +578,8 @@ static BOOL device_is_filtered(struct libusb_device* dev, return filtered; } -static int hotplug_callback(struct libusb_context* ctx, struct libusb_device* dev, - libusb_hotplug_event event, void* user_data) +static int LIBUSB_CALL hotplug_callback(struct libusb_context* ctx, struct libusb_device* dev, + libusb_hotplug_event event, void* user_data) { VID_PID_PAIR pair; struct libusb_device_descriptor desc;