summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2014-08-20 08:11:35 +0200
committerGravatar Nikias Bassen2014-08-20 08:11:35 +0200
commit11d0a9a9b11be238eb553be5973c8c3381f00867 (patch)
treee7b44893bc7731846321ab91d461705f9b7a09a9
parent420eaf54939a55d3805d70f50d213b64ed3c9139 (diff)
downloadideviceinstaller-11d0a9a9b11be238eb553be5973c8c3381f00867.tar.gz
ideviceinstaller-11d0a9a9b11be238eb553be5973c8c3381f00867.tar.bz2
Fix spelling of 'occurred'
-rw-r--r--src/ideviceinstaller.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/ideviceinstaller.c b/src/ideviceinstaller.c
index 3052577..37709d2 100644
--- a/src/ideviceinstaller.c
+++ b/src/ideviceinstaller.c
@@ -85,7 +85,7 @@ int wait_for_op_complete = 0;
int notification_expected = 0;
int is_device_connected = 0;
int op_completed = 0;
-int err_occured = 0;
+int err_occurred = 0;
int notified = 0;
#ifdef HAVE_LIBIMOBILEDEVICE_1_1
@@ -134,9 +134,9 @@ static void status_cb(const char *operation, plist_t status)
} else {
char *err_msg = NULL;
plist_get_string_val(nerror, &err_msg);
- printf("%s - Error occured: %s\n", operation, err_msg);
+ printf("%s - Error occurred: %s\n", operation, err_msg);
free(err_msg);
- err_occured = 1;
+ err_occurred = 1;
}
if (last_status) {
free(last_status);
@@ -268,13 +268,13 @@ static void idevice_wait_for_operation_to_complete()
idevice_event_subscribe(idevice_event_callback, NULL);
/* wait for operation to complete */
- while (wait_for_op_complete && !op_completed && !err_occured
+ while (wait_for_op_complete && !op_completed && !err_occurred
&& !notified && is_device_connected) {
nanosleep(&ts, NULL);
}
/* wait some time if a notification is expected */
- while (notification_expected && !notified && !err_occured && is_device_connected) {
+ while (notification_expected && !notified && !err_occurred && is_device_connected) {
nanosleep(&ts, NULL);
}
@@ -1271,7 +1271,7 @@ run_again:
idevice_wait_for_operation_to_complete();
if (copy_path) {
- if (err_occured) {
+ if (err_occurred) {
afc_client_free(afc);
afc = NULL;
goto leave_cleanup;