diff options
| author | 2014-10-05 16:58:20 +0200 | |
|---|---|---|
| committer | 2014-10-05 16:58:20 +0200 | |
| commit | 7aad73614e19a5cf73e1926c0279adb481fbb8e9 (patch) | |
| tree | f66e0be2810d367222b8f4ed1ee2a5b866e1b79d /tools/idevicebackup2.c | |
| parent | 9ab98650ab0ce0ca816ba66814e7946c639d6b02 (diff) | |
| download | libimobiledevice-7aad73614e19a5cf73e1926c0279adb481fbb8e9.tar.gz libimobiledevice-7aad73614e19a5cf73e1926c0279adb481fbb8e9.tar.bz2 | |
idevicebackup2: Fix error variables for type consistency
Diffstat (limited to 'tools/idevicebackup2.c')
| -rw-r--r-- | tools/idevicebackup2.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/tools/idevicebackup2.c b/tools/idevicebackup2.c index 229fa93..0370139 100644 --- a/tools/idevicebackup2.c +++ b/tools/idevicebackup2.c | |||
| @@ -1201,6 +1201,7 @@ static void print_usage(int argc, char **argv) | |||
| 1201 | int main(int argc, char *argv[]) | 1201 | int main(int argc, char *argv[]) |
| 1202 | { | 1202 | { |
| 1203 | idevice_error_t ret = IDEVICE_E_UNKNOWN_ERROR; | 1203 | idevice_error_t ret = IDEVICE_E_UNKNOWN_ERROR; |
| 1204 | lockdownd_error_t ldret = LOCKDOWN_E_UNKNOWN_ERROR; | ||
| 1204 | int i; | 1205 | int i; |
| 1205 | char* udid = NULL; | 1206 | char* udid = NULL; |
| 1206 | char* source_udid = NULL; | 1207 | char* source_udid = NULL; |
| @@ -1505,8 +1506,8 @@ int main(int argc, char *argv[]) | |||
| 1505 | 1506 | ||
| 1506 | /* start notification_proxy */ | 1507 | /* start notification_proxy */ |
| 1507 | np_client_t np = NULL; | 1508 | np_client_t np = NULL; |
| 1508 | ret = lockdownd_start_service(lockdown, NP_SERVICE_NAME, &service); | 1509 | ldret = lockdownd_start_service(lockdown, NP_SERVICE_NAME, &service); |
| 1509 | if ((ret == LOCKDOWN_E_SUCCESS) && service && service->port) { | 1510 | if ((ldret == LOCKDOWN_E_SUCCESS) && service && service->port) { |
| 1510 | np_client_new(device, service, &np); | 1511 | np_client_new(device, service, &np); |
| 1511 | np_set_notify_callback(np, notify_cb, NULL); | 1512 | np_set_notify_callback(np, notify_cb, NULL); |
| 1512 | const char *noties[5] = { | 1513 | const char *noties[5] = { |
| @@ -1526,8 +1527,8 @@ int main(int argc, char *argv[]) | |||
| 1526 | /* start AFC, we need this for the lock file */ | 1527 | /* start AFC, we need this for the lock file */ |
| 1527 | service->port = 0; | 1528 | service->port = 0; |
| 1528 | service->ssl_enabled = 0; | 1529 | service->ssl_enabled = 0; |
| 1529 | ret = lockdownd_start_service(lockdown, AFC_SERVICE_NAME, &service); | 1530 | ldret = lockdownd_start_service(lockdown, AFC_SERVICE_NAME, &service); |
| 1530 | if ((ret == LOCKDOWN_E_SUCCESS) && service->port) { | 1531 | if ((ldret == LOCKDOWN_E_SUCCESS) && service->port) { |
| 1531 | afc_client_new(device, service, &afc); | 1532 | afc_client_new(device, service, &afc); |
| 1532 | } | 1533 | } |
| 1533 | } | 1534 | } |
| @@ -1539,8 +1540,8 @@ int main(int argc, char *argv[]) | |||
| 1539 | 1540 | ||
| 1540 | /* start mobilebackup service and retrieve port */ | 1541 | /* start mobilebackup service and retrieve port */ |
| 1541 | mobilebackup2_client_t mobilebackup2 = NULL; | 1542 | mobilebackup2_client_t mobilebackup2 = NULL; |
| 1542 | ret = lockdownd_start_service_with_escrow_bag(lockdown, MOBILEBACKUP2_SERVICE_NAME, &service); | 1543 | ldret = lockdownd_start_service_with_escrow_bag(lockdown, MOBILEBACKUP2_SERVICE_NAME, &service); |
| 1543 | if ((ret == LOCKDOWN_E_SUCCESS) && service && service->port) { | 1544 | if ((ldret == LOCKDOWN_E_SUCCESS) && service && service->port) { |
| 1544 | PRINT_VERBOSE(1, "Started \"%s\" service on port %d.\n", MOBILEBACKUP2_SERVICE_NAME, service->port); | 1545 | PRINT_VERBOSE(1, "Started \"%s\" service on port %d.\n", MOBILEBACKUP2_SERVICE_NAME, service->port); |
| 1545 | mobilebackup2_client_new(device, service, &mobilebackup2); | 1546 | mobilebackup2_client_new(device, service, &mobilebackup2); |
| 1546 | 1547 | ||
