|
|
@@ -633,7 +633,7 @@ static void *event_thread(void *param)
|
|
|
return NULL;
|
|
|
}
|
|
|
|
|
|
-static void start_event_thread()
|
|
|
+static void start_event_thread(void)
|
|
|
{
|
|
|
if (libusb_has_capability(LIBUSB_CAP_HAS_HOTPLUG)) {
|
|
|
int res = libusb_hotplug_register_callback(usb_context, LIBUSB_HOTPLUG_EVENT_DEVICE_ARRIVED | LIBUSB_HOTPLUG_EVENT_DEVICE_LEFT, 0, LIBUSB_HOTPLUG_MATCH_ANY, LIBUSB_HOTPLUG_MATCH_ANY, LIBUSB_HOTPLUG_MATCH_ANY, hotplug_callback, NULL, &hotplug_callback_handle);
|
|
|
@@ -645,7 +645,7 @@ static void start_event_thread()
|
|
|
hidapi_thread_create(&event_thread_state, event_thread, NULL);
|
|
|
}
|
|
|
|
|
|
-static void stop_event_thread()
|
|
|
+static void stop_event_thread(void)
|
|
|
{
|
|
|
shutdown_event_thread = 1;
|
|
|
libusb_interrupt_event_handler(usb_context);
|