diff options
| author | 2019-06-11 01:12:49 +0200 | |
|---|---|---|
| committer | 2019-06-11 01:12:49 +0200 | |
| commit | 59adbacef6d400d4c6458f26daddda24bcdfd635 (patch) | |
| tree | fab41dc53822655f4be988017be4031be64cac33 /src/notification_proxy.c | |
| parent | 34444782e22ebfd2abc9e5e9c27e170a839ff66b (diff) | |
| download | libimobiledevice-59adbacef6d400d4c6458f26daddda24bcdfd635.tar.gz libimobiledevice-59adbacef6d400d4c6458f26daddda24bcdfd635.tar.bz2 | |
common: Update thread.c/.h to match the one from libusbmuxd
Diffstat (limited to 'src/notification_proxy.c')
| -rw-r--r-- | src/notification_proxy.c | 6 |
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 | ||
