From b8ea34cbf77c1eacc0ec558bb59b38e053daa8cf Mon Sep 17 00:00:00 2001 From: Martin Szulecki Date: Tue, 14 Oct 2014 19:00:38 +0200 Subject: Use correct error type for afc checks --- src/ideviceinstaller.c | 4 ++-- 1 file 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; } -- cgit v1.1-32-gdbae