diff options
| author | 2014-08-20 08:11:35 +0200 | |
|---|---|---|
| committer | 2014-08-20 08:11:35 +0200 | |
| commit | 11d0a9a9b11be238eb553be5973c8c3381f00867 (patch) | |
| tree | e7b44893bc7731846321ab91d461705f9b7a09a9 /src | |
| parent | 420eaf54939a55d3805d70f50d213b64ed3c9139 (diff) | |
| download | ideviceinstaller-11d0a9a9b11be238eb553be5973c8c3381f00867.tar.gz ideviceinstaller-11d0a9a9b11be238eb553be5973c8c3381f00867.tar.bz2 | |
Fix spelling of 'occurred'
Diffstat (limited to 'src')
| -rw-r--r-- | src/ideviceinstaller.c | 12 |
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; | |||
| 85 | int notification_expected = 0; | 85 | int notification_expected = 0; |
| 86 | int is_device_connected = 0; | 86 | int is_device_connected = 0; |
| 87 | int op_completed = 0; | 87 | int op_completed = 0; |
| 88 | int err_occured = 0; | 88 | int err_occurred = 0; |
| 89 | int notified = 0; | 89 | int notified = 0; |
| 90 | 90 | ||
| 91 | #ifdef HAVE_LIBIMOBILEDEVICE_1_1 | 91 | #ifdef HAVE_LIBIMOBILEDEVICE_1_1 |
| @@ -134,9 +134,9 @@ static void status_cb(const char *operation, plist_t status) | |||
| 134 | } else { | 134 | } else { |
| 135 | char *err_msg = NULL; | 135 | char *err_msg = NULL; |
| 136 | plist_get_string_val(nerror, &err_msg); | 136 | plist_get_string_val(nerror, &err_msg); |
| 137 | printf("%s - Error occured: %s\n", operation, err_msg); | 137 | printf("%s - Error occurred: %s\n", operation, err_msg); |
| 138 | free(err_msg); | 138 | free(err_msg); |
| 139 | err_occured = 1; | 139 | err_occurred = 1; |
| 140 | } | 140 | } |
| 141 | if (last_status) { | 141 | if (last_status) { |
| 142 | free(last_status); | 142 | free(last_status); |
| @@ -268,13 +268,13 @@ static void idevice_wait_for_operation_to_complete() | |||
| 268 | idevice_event_subscribe(idevice_event_callback, NULL); | 268 | idevice_event_subscribe(idevice_event_callback, NULL); |
| 269 | 269 | ||
| 270 | /* wait for operation to complete */ | 270 | /* wait for operation to complete */ |
| 271 | while (wait_for_op_complete && !op_completed && !err_occured | 271 | while (wait_for_op_complete && !op_completed && !err_occurred |
| 272 | && !notified && is_device_connected) { | 272 | && !notified && is_device_connected) { |
| 273 | nanosleep(&ts, NULL); | 273 | nanosleep(&ts, NULL); |
| 274 | } | 274 | } |
| 275 | 275 | ||
| 276 | /* wait some time if a notification is expected */ | 276 | /* wait some time if a notification is expected */ |
| 277 | while (notification_expected && !notified && !err_occured && is_device_connected) { | 277 | while (notification_expected && !notified && !err_occurred && is_device_connected) { |
| 278 | nanosleep(&ts, NULL); | 278 | nanosleep(&ts, NULL); |
| 279 | } | 279 | } |
| 280 | 280 | ||
| @@ -1271,7 +1271,7 @@ run_again: | |||
| 1271 | idevice_wait_for_operation_to_complete(); | 1271 | idevice_wait_for_operation_to_complete(); |
| 1272 | 1272 | ||
| 1273 | if (copy_path) { | 1273 | if (copy_path) { |
| 1274 | if (err_occured) { | 1274 | if (err_occurred) { |
| 1275 | afc_client_free(afc); | 1275 | afc_client_free(afc); |
| 1276 | afc = NULL; | 1276 | afc = NULL; |
| 1277 | goto leave_cleanup; | 1277 | goto leave_cleanup; |
