diff options
author | 2025-06-07 11:27:05 +0200 | |
---|---|---|
committer | 2025-06-07 11:27:05 +0200 | |
commit | 72456f241ef49932a1c1e673059564d6f7ec3aad (patch) | |
tree | 3cb3eee9c0de4ea788d7445feb930e792d69c50e /tools/idevicesetlocation.c | |
parent | eae0cd26b0aac975737393fb7d87efc871a0f5c2 (diff) | |
download | libimobiledevice-72456f241ef49932a1c1e673059564d6f7ec3aad.tar.gz libimobiledevice-72456f241ef49932a1c1e673059564d6f7ec3aad.tar.bz2 |
idevicesetlocation: Return positive values from main()
Diffstat (limited to 'tools/idevicesetlocation.c')
-rw-r--r-- | tools/idevicesetlocation.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tools/idevicesetlocation.c b/tools/idevicesetlocation.c index a23b8e4..d7dbd28 100644 --- a/tools/idevicesetlocation.c +++ b/tools/idevicesetlocation.c @@ -113,7 +113,7 @@ int main(int argc, char **argv) if ((argc > 2) || (argc < 1)) { print_usage(argc+optind, argv-optind, 1); - return -1; + return 1; } if (argc == 2) { @@ -123,7 +123,7 @@ int main(int argc, char **argv) mode = RESET_LOCATION; } else { print_usage(argc+optind, argv-optind, 1); - return -1; + return 1; } } @@ -135,7 +135,7 @@ int main(int argc, char **argv) } else { printf("ERROR: No device found!\n"); } - return -1; + return 1; } lockdownd_client_t lockdown = NULL; @@ -143,7 +143,7 @@ int main(int argc, char **argv) if (lerr != LOCKDOWN_E_SUCCESS) { idevice_free(device); printf("ERROR: Could not connect to lockdownd: %s (%d)\n", lockdownd_strerror(lerr), lerr); - return -1; + return 1; } lockdownd_service_descriptor_t svc = NULL; @@ -152,7 +152,7 @@ int main(int argc, char **argv) lockdownd_client_free(lockdown); idevice_free(device); printf("ERROR: Could not start the simulatelocation service: %s\nMake sure a developer disk image is mounted!\n", lockdownd_strerror(lerr)); - return -1; + return 1; } lockdownd_client_free(lockdown); @@ -165,7 +165,7 @@ int main(int argc, char **argv) if (serr != SERVICE_E_SUCCESS) { idevice_free(device); printf("ERROR: Could not connect to simulatelocation service (%d)\n", serr); - return -1; + return 1; } uint32_t l; |