fix gcc building

This commit is contained in:
Nick Chan committed 2023-01-27 22:06:43 +08:00
1 parent 3e6382f65e
commit 2cafb8ae19
4 files changed
+7 -7

No files matched your search

+3 -3
View File
@@ -143,7 +143,7 @@ void* connected_dfu_mode(struct irecv_device_info* info) {
return NULL;
}
void device_event_cb(const usbmuxd_event_t *event, void* __unused userdata) {
void device_event_cb(const usbmuxd_event_t *event, void* userdata) {
if (event->device.conn_type != CONNECTION_TYPE_USB) return;
switch (event->event) {
case UE_DEVICE_ADD:
@@ -156,7 +156,7 @@ void device_event_cb(const usbmuxd_event_t *event, void* __unused userdata) {
}
}
void irecv_device_event_cb(const irecv_device_event_t *event, void* __unused userdata) {
void irecv_device_event_cb(const irecv_device_event_t *event, void* userdata) {
pthread_t recovery_thread, dfu_thread;
switch(event->type) {
@@ -177,7 +177,7 @@ void irecv_device_event_cb(const irecv_device_event_t *event, void* __unused use
}
}
void *dfuhelper(void* __unused ptr) {
void *dfuhelper(void* ptr) {
subscribe_cmd(device_event_cb, irecv_device_event_cb);
while (spin) {
sleep(1);