summaryrefslogtreecommitdiffstats
path: root/src/restore.c
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2021-09-01 15:57:09 +0200
committerGravatar Nikias Bassen2021-09-01 15:57:09 +0200
commitc53602cf09a9dec0b82e0f2cfd46616cf7b4ccff (patch)
tree6b8097d7d02d0aa11f470fe06df71400a8190f32 /src/restore.c
parent9a9ad5dab9a88705bb0b3261220ba2a52acc31dc (diff)
downloadidevicerestore-c53602cf09a9dec0b82e0f2cfd46616cf7b4ccff.tar.gz
idevicerestore-c53602cf09a9dec0b82e0f2cfd46616cf7b4ccff.tar.bz2
Remove common code in favor of libimobiledevice-glue
Diffstat (limited to 'src/restore.c')
-rw-r--r--src/restore.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/restore.c b/src/restore.c
index d5d1463..69e5191 100644
--- a/src/restore.c
+++ b/src/restore.c
@@ -3372,7 +3372,7 @@ int restore_device(struct idevicerestore_client_t* client, plist_t build_identit
idevice_t device = NULL;
restored_client_t restore = NULL;
restored_error_t restore_error = RESTORE_E_SUCCESS;
- thread_t fdr_thread = (thread_t)NULL;
+ THREAD_T fdr_thread = THREAD_T_NULL;
restore_finished = 0;
@@ -3458,7 +3458,7 @@ int restore_device(struct idevicerestore_client_t* client, plist_t build_identit
if (!fdr_connect(device, FDR_CTRL, &fdr_control_channel)) {
if(thread_new(&fdr_thread, fdr_listener_thread, fdr_control_channel)) {
error("ERROR: Failed to start FDR listener thread\n");
- fdr_thread = (thread_t)NULL; /* undefined after failure */
+ fdr_thread = THREAD_T_NULL; /* undefined after failure */
}
} else {
error("ERROR: Failed to start FDR Ctrl channel\n");