mirror of
https://github.com/palera1n/palera1n.git
synced 2026-10-30 04:59:49 +01:00
fix gcc building
This commit is contained in:
1 parent
3e6382f65e
commit
2cafb8ae19
4 files changed
+7
-7
No files matched your search
+3
-3
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user