summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2015-09-24 22:24:46 +0200
committerGravatar Nikias Bassen2015-09-24 22:24:46 +0200
commit24b938968903f244d9d18cb922d68a3c25bb9880 (patch)
tree6445388aa7e089315c8043d182b9c344f0b840af
parenta594783185cb7f2bf139fdd2f9efa4b051831d8b (diff)
downloadidevicerestore-24b938968903f244d9d18cb922d68a3c25bb9880.tar.gz
idevicerestore-24b938968903f244d9d18cb922d68a3c25bb9880.tar.bz2
normal: Use correct error code values for lockdownd_error_t
-rw-r--r--src/normal.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/normal.c b/src/normal.c
index 4193b7f..c0a7881 100644
--- a/src/normal.c
+++ b/src/normal.c
@@ -214,7 +214,7 @@ const char* normal_check_product_type(struct idevicerestore_client_t* client) {
irecv_device_t irecv_device = NULL;
plist_t product_type_node = NULL;
lockdownd_client_t lockdown = NULL;
- lockdownd_error_t lockdown_error = IDEVICE_E_SUCCESS;
+ lockdownd_error_t lockdown_error = LOCKDOWN_E_SUCCESS;
normal_idevice_new(client, &device);
if (!device) {
@@ -333,7 +333,7 @@ static int normal_get_nonce_by_key(struct idevicerestore_client_t* client, const
plist_t nonce_node = NULL;
lockdownd_client_t lockdown = NULL;
idevice_error_t device_error = IDEVICE_E_SUCCESS;
- lockdownd_error_t lockdown_error = IDEVICE_E_SUCCESS;
+ lockdownd_error_t lockdown_error = LOCKDOWN_E_SUCCESS;
device_error = idevice_new(&device, client->udid);
if (device_error != IDEVICE_E_SUCCESS) {
@@ -389,7 +389,7 @@ int normal_is_image4_supported(struct idevicerestore_client_t* client)
plist_t node = NULL;
lockdownd_client_t lockdown = NULL;
idevice_error_t device_error = IDEVICE_E_SUCCESS;
- lockdownd_error_t lockdown_error = IDEVICE_E_SUCCESS;
+ lockdownd_error_t lockdown_error = LOCKDOWN_E_SUCCESS;
device_error = idevice_new(&device, client->udid);
if (device_error != IDEVICE_E_SUCCESS) {
@@ -433,7 +433,7 @@ int normal_get_ecid(struct idevicerestore_client_t* client, uint64_t* ecid) {
plist_t unique_chip_node = NULL;
lockdownd_client_t lockdown = NULL;
idevice_error_t device_error = IDEVICE_E_SUCCESS;
- lockdownd_error_t lockdown_error = IDEVICE_E_SUCCESS;
+ lockdownd_error_t lockdown_error = LOCKDOWN_E_SUCCESS;
device_error = idevice_new(&device, client->udid);
if (device_error != IDEVICE_E_SUCCESS) {
@@ -476,7 +476,7 @@ int normal_get_preflight_info(struct idevicerestore_client_t* client, plist_t *p
plist_t node = NULL;
lockdownd_client_t lockdown = NULL;
idevice_error_t device_error = IDEVICE_E_SUCCESS;
- lockdownd_error_t lockdown_error = IDEVICE_E_SUCCESS;
+ lockdownd_error_t lockdown_error = LOCKDOWN_E_SUCCESS;
device_error = idevice_new(&device, client->udid);
if (device_error != IDEVICE_E_SUCCESS) {