summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/idevicebtlogger.c5
-rw-r--r--tools/idevicesyslog.c5
2 files changed, 6 insertions, 4 deletions
diff --git a/tools/idevicebtlogger.c b/tools/idevicebtlogger.c
index 421ce98..8de6b22 100644
--- a/tools/idevicebtlogger.c
+++ b/tools/idevicebtlogger.c
@@ -440,13 +440,14 @@ int main(int argc, char *argv[])
440 assert(0); 440 assert(0);
441 return -2; 441 return -2;
442 } 442 }
443 idevice_event_subscribe(device_event_cb, NULL); 443 idevice_subscription_context_t context = NULL;
444 idevice_events_subscribe(&context, device_event_cb, NULL);
444 445
445 while (!quit_flag) { 446 while (!quit_flag) {
446 sleep(1); 447 sleep(1);
447 } 448 }
448 449
449 idevice_event_unsubscribe(); 450 idevice_events_unsubscribe(context);
450 stop_logging(); 451 stop_logging();
451 452
452 fclose(packetlogger_file); 453 fclose(packetlogger_file);
diff --git a/tools/idevicesyslog.c b/tools/idevicesyslog.c
index f85c7cc..3084b97 100644
--- a/tools/idevicesyslog.c
+++ b/tools/idevicesyslog.c
@@ -709,12 +709,13 @@ int main(int argc, char *argv[])
709 line_buffer_size = 1024; 709 line_buffer_size = 1024;
710 line = malloc(line_buffer_size); 710 line = malloc(line_buffer_size);
711 711
712 idevice_event_subscribe(device_event_cb, NULL); 712 idevice_subscription_context_t context = NULL;
713 idevice_events_subscribe(&context, device_event_cb, NULL);
713 714
714 while (!quit_flag) { 715 while (!quit_flag) {
715 sleep(1); 716 sleep(1);
716 } 717 }
717 idevice_event_unsubscribe(); 718 idevice_events_unsubscribe(context);
718 stop_logging(); 719 stop_logging();
719 720
720 if (num_proc_filters > 0) { 721 if (num_proc_filters > 0) {