summaryrefslogtreecommitdiffstats
path: root/src/restore.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/restore.c')
-rw-r--r--src/restore.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/restore.c b/src/restore.c
index f4a2ed3..a9ab8b9 100644
--- a/src/restore.c
+++ b/src/restore.c
@@ -112,8 +112,8 @@ restored_error_t restored_client_free(restored_client_t client)
112 } 112 }
113 } 113 }
114 114
115 if (client->uuid) { 115 if (client->udid) {
116 free(client->uuid); 116 free(client->udid);
117 } 117 }
118 if (client->label) { 118 if (client->label) {
119 free(client->label); 119 free(client->label);
@@ -370,22 +370,22 @@ restored_error_t restored_client_new(idevice_t device, restored_client_t *client
370 370
371 property_list_service_client_t plistclient = NULL; 371 property_list_service_client_t plistclient = NULL;
372 if (property_list_service_client_new(device, 0xf27e, &plistclient) != PROPERTY_LIST_SERVICE_E_SUCCESS) { 372 if (property_list_service_client_new(device, 0xf27e, &plistclient) != PROPERTY_LIST_SERVICE_E_SUCCESS) {
373 debug_info("could not connect to restored (device %s)", device->uuid); 373 debug_info("could not connect to restored (device %s)", device->udid);
374 return RESTORE_E_MUX_ERROR; 374 return RESTORE_E_MUX_ERROR;
375 } 375 }
376 376
377 restored_client_t client_loc = (restored_client_t) malloc(sizeof(struct restored_client_private)); 377 restored_client_t client_loc = (restored_client_t) malloc(sizeof(struct restored_client_private));
378 client_loc->parent = plistclient; 378 client_loc->parent = plistclient;
379 client_loc->uuid = NULL; 379 client_loc->udid = NULL;
380 client_loc->label = NULL; 380 client_loc->label = NULL;
381 if (label != NULL) 381 if (label != NULL)
382 client_loc->label = strdup(label); 382 client_loc->label = strdup(label);
383 383
384 ret = idevice_get_uuid(device, &client_loc->uuid); 384 ret = idevice_get_udid(device, &client_loc->udid);
385 if (RESTORE_E_SUCCESS != ret) { 385 if (RESTORE_E_SUCCESS != ret) {
386 debug_info("failed to get device uuid."); 386 debug_info("failed to get device udid.");
387 } 387 }
388 debug_info("device uuid: %s", client_loc->uuid); 388 debug_info("device udid: %s", client_loc->udid);
389 389
390 if (RESTORE_E_SUCCESS == ret) { 390 if (RESTORE_E_SUCCESS == ret) {
391 *client = client_loc; 391 *client = client_loc;