summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2014-10-14 19:00:38 +0200
committerGravatar Martin Szulecki2014-10-14 19:00:38 +0200
commitb8ea34cbf77c1eacc0ec558bb59b38e053daa8cf (patch)
tree7ceb6ee0f749b93b3db91e70b7d855ff4ac82c8d
parente017c635102ca6783f5d3428c6568c6edb808eb5 (diff)
downloadideviceinstaller-b8ea34cbf77c1eacc0ec558bb59b38e053daa8cf.tar.gz
ideviceinstaller-b8ea34cbf77c1eacc0ec558bb59b38e053daa8cf.tar.bz2
Use correct error type for afc checks
-rw-r--r--src/ideviceinstaller.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ideviceinstaller.c b/src/ideviceinstaller.c
index f691556..de1f93c 100644
--- a/src/ideviceinstaller.c
+++ b/src/ideviceinstaller.c
@@ -777,7 +777,7 @@ run_again:
lockdownd_client_free(client);
client = NULL;
- if (afc_client_new(phone, service, &afc) != INSTPROXY_E_SUCCESS) {
+ if (afc_client_new(phone, service, &afc) != AFC_E_SUCCESS) {
fprintf(stderr, "Could not connect to AFC!\n");
goto leave_cleanup;
}
@@ -1243,7 +1243,7 @@ run_again:
lockdownd_client_free(client);
client = NULL;
- if (afc_client_new(phone, service, &afc) != INSTPROXY_E_SUCCESS) {
+ if (afc_client_new(phone, service, &afc) != AFC_E_SUCCESS) {
fprintf(stderr, "Could not connect to AFC!\n");
goto leave_cleanup;
}