summaryrefslogtreecommitdiffstats
path: root/src/notification_proxy.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/notification_proxy.c')
-rw-r--r--src/notification_proxy.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/notification_proxy.c b/src/notification_proxy.c
index c0b216e..3015ed9 100644
--- a/src/notification_proxy.c
+++ b/src/notification_proxy.c
@@ -98,7 +98,7 @@ LIBIMOBILEDEVICE_API np_error_t np_client_new(idevice_t device, lockdownd_servic
98 client_loc->parent = plistclient; 98 client_loc->parent = plistclient;
99 99
100 mutex_init(&client_loc->mutex); 100 mutex_init(&client_loc->mutex);
101 client_loc->notifier = (thread_t)NULL; 101 client_loc->notifier = THREAD_T_NULL;
102 102
103 *client = client_loc; 103 *client = client_loc;
104 return NP_E_SUCCESS; 104 return NP_E_SUCCESS;
@@ -132,7 +132,7 @@ LIBIMOBILEDEVICE_API np_error_t np_client_free(np_client_t client)
132 debug_info("joining np callback"); 132 debug_info("joining np callback");
133 thread_join(client->notifier); 133 thread_join(client->notifier);
134 thread_free(client->notifier); 134 thread_free(client->notifier);
135 client->notifier = (thread_t)NULL; 135 client->notifier = THREAD_T_NULL;
136 } else { 136 } else {
137 dict = NULL; 137 dict = NULL;
138 property_list_service_receive_plist(parent, &dict); 138 property_list_service_receive_plist(parent, &dict);
@@ -350,7 +350,7 @@ LIBIMOBILEDEVICE_API np_error_t np_set_notify_callback( np_client_t client, np_n
350 client->parent = NULL; 350 client->parent = NULL;
351 thread_join(client->notifier); 351 thread_join(client->notifier);
352 thread_free(client->notifier); 352 thread_free(client->notifier);
353 client->notifier = (thread_t)NULL; 353 client->notifier = THREAD_T_NULL;
354 client->parent = parent; 354 client->parent = parent;
355 } 355 }
356 356