diff options
| author | 2013-04-25 17:26:26 +0100 | |
|---|---|---|
| committer | 2013-04-25 17:26:26 +0100 | |
| commit | 927c34ee8e6974a34b1dfd7d1a4fde5eabbeca7a (patch) | |
| tree | bdc81939255cdabcb7c4fb969e29305f2cd62b07 | |
| parent | 8ae2368031ac51065b569003209aae267b95d5b2 (diff) | |
| download | libimobiledevice-927c34ee8e6974a34b1dfd7d1a4fde5eabbeca7a.tar.gz libimobiledevice-927c34ee8e6974a34b1dfd7d1a4fde5eabbeca7a.tar.bz2 | |
installation_proxy: Silence compiler warnings about thread_t pointer assignments
| -rw-r--r-- | src/installation_proxy.c | 4 | ||||
| -rw-r--r-- | src/notification_proxy.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/installation_proxy.c b/src/installation_proxy.c index c49014d..b1dfeb4 100644 --- a/src/installation_proxy.c +++ b/src/installation_proxy.c | |||
| @@ -105,7 +105,7 @@ instproxy_error_t instproxy_client_new(idevice_t device, lockdownd_service_descr | |||
| 105 | instproxy_client_t client_loc = (instproxy_client_t) malloc(sizeof(struct instproxy_client_private)); | 105 | instproxy_client_t client_loc = (instproxy_client_t) malloc(sizeof(struct instproxy_client_private)); |
| 106 | client_loc->parent = plistclient; | 106 | client_loc->parent = plistclient; |
| 107 | mutex_init(&client_loc->mutex); | 107 | mutex_init(&client_loc->mutex); |
| 108 | client_loc->status_updater = NULL; | 108 | client_loc->status_updater = (thread_t)NULL; |
| 109 | 109 | ||
| 110 | *client = client_loc; | 110 | *client = client_loc; |
| 111 | return INSTPROXY_E_SUCCESS; | 111 | return INSTPROXY_E_SUCCESS; |
| @@ -354,7 +354,7 @@ static void* instproxy_status_updater(void* arg) | |||
| 354 | if (data->operation) { | 354 | if (data->operation) { |
| 355 | free(data->operation); | 355 | free(data->operation); |
| 356 | } | 356 | } |
| 357 | data->client->status_updater = NULL; | 357 | data->client->status_updater = (thread_t)NULL; |
| 358 | instproxy_unlock(data->client); | 358 | instproxy_unlock(data->client); |
| 359 | free(data); | 359 | free(data); |
| 360 | 360 | ||
diff --git a/src/notification_proxy.c b/src/notification_proxy.c index 952e5f2..291c257 100644 --- a/src/notification_proxy.c +++ b/src/notification_proxy.c | |||
| @@ -110,7 +110,7 @@ np_error_t np_client_new(idevice_t device, lockdownd_service_descriptor_t servic | |||
| 110 | client_loc->parent = plistclient; | 110 | client_loc->parent = plistclient; |
| 111 | 111 | ||
| 112 | mutex_init(&client_loc->mutex); | 112 | mutex_init(&client_loc->mutex); |
| 113 | client_loc->notifier = NULL; | 113 | client_loc->notifier = (thread_t)NULL; |
| 114 | 114 | ||
| 115 | *client = client_loc; | 115 | *client = client_loc; |
| 116 | return NP_E_SUCCESS; | 116 | return NP_E_SUCCESS; |
| @@ -395,7 +395,7 @@ np_error_t np_set_notify_callback( np_client_t client, np_notify_cb_t notify_cb, | |||
| 395 | property_list_service_client_t parent = client->parent; | 395 | property_list_service_client_t parent = client->parent; |
| 396 | client->parent = NULL; | 396 | client->parent = NULL; |
| 397 | thread_join(client->notifier); | 397 | thread_join(client->notifier); |
| 398 | client->notifier = NULL; | 398 | client->notifier = (thread_t)NULL; |
| 399 | client->parent = parent; | 399 | client->parent = parent; |
| 400 | } | 400 | } |
| 401 | 401 | ||
