diff options
author | BALATON Zoltan | 2015-05-05 01:16:38 +0200 |
---|---|---|
committer | BALATON Zoltan | 2015-05-05 01:19:41 +0200 |
commit | 9a53b8f2bc3c2ac366d208b620d6404e936e2a92 (patch) | |
tree | 821796eeb2fc096ffb886aa8fb9b297421065d37 /src/restore.c | |
parent | e96e7dea1c2cd12ddb2679b7f91775c48aff4d11 (diff) | |
download | idevicerestore-9a53b8f2bc3c2ac366d208b620d6404e936e2a92.tar.gz idevicerestore-9a53b8f2bc3c2ac366d208b620d6404e936e2a92.tar.bz2 |
Update fdr implementation for thread function changes in latest
libimobiledevice version
Diffstat (limited to 'src/restore.c')
-rw-r--r-- | src/restore.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/restore.c b/src/restore.c index aa352c5..b324470 100644 --- a/src/restore.c +++ b/src/restore.c @@ -1655,7 +1655,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 = 0; + thread_t fdr_thread = NULL; restore_finished = 0; @@ -1744,9 +1744,9 @@ int restore_device(struct idevicerestore_client_t* client, plist_t build_identit fdr_client_t fdr_control_channel = NULL; info("FDRSupport indicated, starting FDR listener thread\n"); if (!fdr_connect(device, FDR_CTRL, &fdr_control_channel)) { - if(thread_create(&fdr_thread, fdr_listener_thread, 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 = 0; /* undefined after failure */ + fdr_thread = NULL; /* undefined after failure */ } } else { error("ERROR: Failed to start FDR Ctrl channel\n"); |