Use correct error type for afc checks
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 @@ 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 @@ 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; }