summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Yves-Alexis Perez2018-10-08 13:39:31 +0200
committerGravatar Nikias Bassen2019-06-23 11:14:53 +0200
commit41ce2454b7f0b4a679070ea377545ba34f70095f (patch)
tree0cc4c5b04c9e2b0e9de7672c0e61e0184614ca04
parentb8df28038f3ca8a3a8be6569cea251d2506c3171 (diff)
downloadlibimobiledevice-41ce2454b7f0b4a679070ea377545ba34f70095f.tar.gz
libimobiledevice-41ce2454b7f0b4a679070ea377545ba34f70095f.tar.bz2
replace all occurrences of occured by occurred
Do it in all comments and errors messages
-rw-r--r--include/libimobiledevice/house_arrest.h6
-rw-r--r--include/libimobiledevice/installation_proxy.h26
-rw-r--r--include/libimobiledevice/libimobiledevice.h8
-rw-r--r--include/libimobiledevice/mobilebackup2.h2
-rw-r--r--include/libimobiledevice/property_list_service.h2
-rw-r--r--include/libimobiledevice/screenshotr.h2
-rw-r--r--include/libimobiledevice/service.h2
-rw-r--r--src/diagnostics_relay.c2
-rw-r--r--src/installation_proxy.c6
-rw-r--r--src/lockdown.c2
-rw-r--r--src/misagent.c2
-rw-r--r--src/notification_proxy.c4
-rw-r--r--src/restore.c2
-rw-r--r--tools/idevicebackup.c4
-rw-r--r--tools/idevicebackup2.c4
15 files changed, 37 insertions, 37 deletions
diff --git a/include/libimobiledevice/house_arrest.h b/include/libimobiledevice/house_arrest.h
index 31b6401..5a42838 100644
--- a/include/libimobiledevice/house_arrest.h
+++ b/include/libimobiledevice/house_arrest.h
@@ -109,7 +109,7 @@ house_arrest_error_t house_arrest_client_free(house_arrest_client_t client);
* HOUSE_ARREST_E_INVALID_ARG if client or dict is invalid,
* HOUSE_ARREST_E_PLIST_ERROR if dict is not a plist of type PLIST_DICT,
* HOUSE_ARREST_E_INVALID_MODE if the client is not in the correct mode,
- * or HOUSE_ARREST_E_CONN_FAILED if a connection error occured.
+ * or HOUSE_ARREST_E_CONN_FAILED if a connection error occurred.
*/
house_arrest_error_t house_arrest_send_request(house_arrest_client_t client, plist_t dict);
@@ -130,7 +130,7 @@ house_arrest_error_t house_arrest_send_request(house_arrest_client_t client, pli
* @return HOUSE_ARREST_E_SUCCESS if the command was successfully sent,
* HOUSE_ARREST_E_INVALID_ARG if client, command, or appid is invalid,
* HOUSE_ARREST_E_INVALID_MODE if the client is not in the correct mode,
- * or HOUSE_ARREST_E_CONN_FAILED if a connection error occured.
+ * or HOUSE_ARREST_E_CONN_FAILED if a connection error occurred.
*/
house_arrest_error_t house_arrest_send_command(house_arrest_client_t client, const char *command, const char *appid);
@@ -146,7 +146,7 @@ house_arrest_error_t house_arrest_send_command(house_arrest_client_t client, con
* @return HOUSE_ARREST_E_SUCCESS if a result plist was retrieved,
* HOUSE_ARREST_E_INVALID_ARG if client is invalid,
* HOUSE_ARREST_E_INVALID_MODE if the client is not in the correct mode,
- * or HOUSE_ARREST_E_CONN_FAILED if a connection error occured.
+ * or HOUSE_ARREST_E_CONN_FAILED if a connection error occurred.
*/
house_arrest_error_t house_arrest_get_result(house_arrest_client_t client, plist_t *dict);
diff --git a/include/libimobiledevice/installation_proxy.h b/include/libimobiledevice/installation_proxy.h
index bc23f9d..1ff82dc 100644
--- a/include/libimobiledevice/installation_proxy.h
+++ b/include/libimobiledevice/installation_proxy.h
@@ -124,7 +124,7 @@ typedef void (*instproxy_status_cb_t) (plist_t command, plist_t status, void *us
* instproxy_client_t upon successful return.
*
* @return INSTPROXY_E_SUCCESS on success, or an INSTPROXY_E_* error value
- * when an error occured.
+ * when an error occurred.
*/
instproxy_error_t instproxy_client_new(idevice_t device, lockdownd_service_descriptor_t service, instproxy_client_t *client);
@@ -168,7 +168,7 @@ instproxy_error_t instproxy_client_free(instproxy_client_t client);
* of PLIST_DICT holding information about the applications found.
*
* @return INSTPROXY_E_SUCCESS on success or an INSTPROXY_E_* error value if
- * an error occured.
+ * an error occurred.
*/
instproxy_error_t instproxy_browse(instproxy_client_t client, plist_t client_options, plist_t *result);
@@ -187,7 +187,7 @@ instproxy_error_t instproxy_browse(instproxy_client_t client, plist_t client_opt
* @param user_data Callback data passed to status_cb.
*
* @return INSTPROXY_E_SUCCESS on success or an INSTPROXY_E_* error value if
- * an error occured.
+ * an error occurred.
*/
instproxy_error_t instproxy_browse_with_callback(instproxy_client_t client, plist_t client_options, instproxy_status_cb_t status_cb, void *user_data);
@@ -203,7 +203,7 @@ instproxy_error_t instproxy_browse_with_callback(instproxy_client_t client, plis
* holding requested information about the application or NULL on errors.
*
* @return INSTPROXY_E_SUCCESS on success or an INSTPROXY_E_* error value if
- * an error occured.
+ * an error occurred.
*/
instproxy_error_t instproxy_lookup(instproxy_client_t client, const char** appids, plist_t client_options, plist_t *result);
@@ -224,7 +224,7 @@ instproxy_error_t instproxy_lookup(instproxy_client_t client, const char** appid
* @param user_data Callback data passed to status_cb.
*
* @return INSTPROXY_E_SUCCESS on success or an INSTPROXY_E_* error value if
- * an error occured.
+ * an error occurred.
*
* @note If a callback function is given (async mode), this function returns
* INSTPROXY_E_SUCCESS immediately if the status updater thread has been
@@ -252,7 +252,7 @@ instproxy_error_t instproxy_install(instproxy_client_t client, const char *pkg_p
* @param user_data Callback data passed to status_cb.
*
* @return INSTPROXY_E_SUCCESS on success or an INSTPROXY_E_* error value if
- * an error occured.
+ * an error occurred.
*
* @note If a callback function is given (async mode), this function returns
* INSTPROXY_E_SUCCESS immediately if the status updater thread has been
@@ -273,7 +273,7 @@ instproxy_error_t instproxy_upgrade(instproxy_client_t client, const char *pkg_p
* @param user_data Callback data passed to status_cb.
*
* @return INSTPROXY_E_SUCCESS on success or an INSTPROXY_E_* error value if
- * an error occured.
+ * an error occurred.
*
* @note If a callback function is given (async mode), this function returns
* INSTPROXY_E_SUCCESS immediately if the status updater thread has been
@@ -294,7 +294,7 @@ instproxy_error_t instproxy_uninstall(instproxy_client_t client, const char *app
* holding information about the archived applications found.
*
* @return INSTPROXY_E_SUCCESS on success or an INSTPROXY_E_* error value if
- * an error occured.
+ * an error occurred.
*/
instproxy_error_t instproxy_lookup_archives(instproxy_client_t client, plist_t client_options, plist_t *result);
@@ -315,7 +315,7 @@ instproxy_error_t instproxy_lookup_archives(instproxy_client_t client, plist_t c
* @param user_data Callback data passed to status_cb.
*
* @return INSTPROXY_E_SUCCESS on success or an INSTPROXY_E_* error value if
- * an error occured.
+ * an error occurred.
*
* @note If a callback function is given (async mode), this function returns
* INSTPROXY_E_SUCCESS immediately if the status updater thread has been
@@ -339,7 +339,7 @@ instproxy_error_t instproxy_archive(instproxy_client_t client, const char *appid
* @param user_data Callback data passed to status_cb.
*
* @return INSTPROXY_E_SUCCESS on success or an INSTPROXY_E_* error value if
- * an error occured.
+ * an error occurred.
*
* @note If a callback function is given (async mode), this function returns
* INSTPROXY_E_SUCCESS immediately if the status updater thread has been
@@ -362,7 +362,7 @@ instproxy_error_t instproxy_restore(instproxy_client_t client, const char *appid
* @param user_data Callback data passed to status_cb.
*
* @return INSTPROXY_E_SUCCESS on success or an INSTPROXY_E_* error value if
- * an error occured.
+ * an error occurred.
*
* @note If a callback function is given (async mode), this function returns
* INSTPROXY_E_SUCCESS immediately if the status updater thread has been
@@ -383,7 +383,7 @@ instproxy_error_t instproxy_remove_archive(instproxy_client_t client, const char
* holding information if the capabilities matched or NULL on errors.
*
* @return INSTPROXY_E_SUCCESS on success or an INSTPROXY_E_* error value if
- * an error occured.
+ * an error occurred.
*/
instproxy_error_t instproxy_check_capabilities_match(instproxy_client_t client, const char** capabilities, plist_t client_options, plist_t *result);
@@ -493,7 +493,7 @@ void instproxy_client_options_free(plist_t client_options);
*
* @return INSTPROXY_E_SUCCESS on success, INSTPROXY_E_OP_FAILED if
* the path could not be determined or an INSTPROXY_E_* error
- * value if an error occured.
+ * value if an error occurred.
*/
instproxy_error_t instproxy_client_get_path_for_bundle_identifier(instproxy_client_t client, const char* bundle_id, char** path);
diff --git a/include/libimobiledevice/libimobiledevice.h b/include/libimobiledevice/libimobiledevice.h
index 729bc89..8f8589d 100644
--- a/include/libimobiledevice/libimobiledevice.h
+++ b/include/libimobiledevice/libimobiledevice.h
@@ -60,7 +60,7 @@ enum idevice_event_type {
};
/* event data structure */
-/** Provides information about the occured event. */
+/** Provides information about the occurred event. */
typedef struct {
enum idevice_event_type event; /**< The event type. */
const char *udid; /**< The device unique id. */
@@ -88,7 +88,7 @@ void idevice_set_debug_level(int level);
* @param user_data Application-specific data passed as parameter
* to the registered callback function.
*
- * @return IDEVICE_E_SUCCESS on success or an error value when an error occured.
+ * @return IDEVICE_E_SUCCESS on success or an error value when an error occurred.
*/
idevice_error_t idevice_event_subscribe(idevice_event_cb_t callback, void *user_data);
@@ -96,7 +96,7 @@ idevice_error_t idevice_event_subscribe(idevice_event_cb_t callback, void *user_
* Release the event callback function that has been registered with
* idevice_event_subscribe().
*
- * @return IDEVICE_E_SUCCESS on success or an error value when an error occured.
+ * @return IDEVICE_E_SUCCESS on success or an error value when an error occurred.
*/
idevice_error_t idevice_event_unsubscribe(void);
@@ -109,7 +109,7 @@ idevice_error_t idevice_event_unsubscribe(void);
* This list is terminated by a NULL pointer.
* @param count Number of devices found.
*
- * @return IDEVICE_E_SUCCESS on success or an error value when an error occured.
+ * @return IDEVICE_E_SUCCESS on success or an error value when an error occurred.
*/
idevice_error_t idevice_get_device_list(char ***devices, int *count);
diff --git a/include/libimobiledevice/mobilebackup2.h b/include/libimobiledevice/mobilebackup2.h
index 1f20d40..0c42334 100644
--- a/include/libimobiledevice/mobilebackup2.h
+++ b/include/libimobiledevice/mobilebackup2.h
@@ -146,7 +146,7 @@ mobilebackup2_error_t mobilebackup2_send_raw(mobilebackup2_client_t client, cons
* Receive binary from the device.
*
* @note This function returns MOBILEBACKUP2_E_SUCCESS even if no data
- * has been received (unless a communication error occured).
+ * has been received (unless a communication error occurred).
* The fourth parameter is required and must be checked to know how
* many bytes were actually received.
*
diff --git a/include/libimobiledevice/property_list_service.h b/include/libimobiledevice/property_list_service.h
index aca966d..031d6f8 100644
--- a/include/libimobiledevice/property_list_service.h
+++ b/include/libimobiledevice/property_list_service.h
@@ -68,7 +68,7 @@ property_list_service_error_t property_list_service_client_new(idevice_t device,
*
* @return PROPERTY_LIST_SERVICE_E_SUCCESS on success,
* PROPERTY_LIST_SERVICE_E_INVALID_ARG when client is invalid, or a
- * PROPERTY_LIST_SERVICE_E_UNKNOWN_ERROR when another error occured.
+ * PROPERTY_LIST_SERVICE_E_UNKNOWN_ERROR when another error occurred.
*/
property_list_service_error_t property_list_service_client_free(property_list_service_client_t client);
diff --git a/include/libimobiledevice/screenshotr.h b/include/libimobiledevice/screenshotr.h
index 0d44255..c12646b 100644
--- a/include/libimobiledevice/screenshotr.h
+++ b/include/libimobiledevice/screenshotr.h
@@ -104,7 +104,7 @@ screenshotr_error_t screenshotr_client_free(screenshotr_client_t client);
*
* @return SCREENSHOTR_E_SUCCESS on success, SCREENSHOTR_E_INVALID_ARG if
* one or more parameters are invalid, or another error code if an
- * error occured.
+ * error occurred.
*/
screenshotr_error_t screenshotr_take_screenshot(screenshotr_client_t client, char **imgdata, uint64_t *imgsize);
diff --git a/include/libimobiledevice/service.h b/include/libimobiledevice/service.h
index facf03b..84c5092 100644
--- a/include/libimobiledevice/service.h
+++ b/include/libimobiledevice/service.h
@@ -87,7 +87,7 @@ service_error_t service_client_factory_start_service(idevice_t device, const cha
*
* @return SERVICE_E_SUCCESS on success,
* SERVICE_E_INVALID_ARG when client is invalid, or a
- * SERVICE_E_UNKNOWN_ERROR when another error occured.
+ * SERVICE_E_UNKNOWN_ERROR when another error occurred.
*/
service_error_t service_client_free(service_client_t client);
diff --git a/src/diagnostics_relay.c b/src/diagnostics_relay.c
index 79e041e..0834700 100644
--- a/src/diagnostics_relay.c
+++ b/src/diagnostics_relay.c
@@ -36,7 +36,7 @@
*
* @return RESULT_SUCCESS when the result is 'Success',
* RESULT_FAILURE when the result is 'Failure',
- * or a negative value if an error occured during evaluation.
+ * or a negative value if an error occurred during evaluation.
*/
static int diagnostics_relay_check_result(plist_t dict)
{
diff --git a/src/installation_proxy.c b/src/installation_proxy.c
index 24044aa..7c2d336 100644
--- a/src/installation_proxy.c
+++ b/src/installation_proxy.c
@@ -286,7 +286,7 @@ LIBIMOBILEDEVICE_API instproxy_error_t instproxy_client_free(instproxy_client_t
* @param package_path The installation package path or NULL if not required.
*
* @return INSTPROXY_E_SUCCESS on success or an INSTPROXY_E_* error value if
- * an error occured.
+ * an error occurred.
*/
static instproxy_error_t instproxy_send_command(instproxy_client_t client, plist_t command)
{
@@ -460,7 +460,7 @@ static void* instproxy_receive_status_loop_thread(void* arg)
*
* @return INSTPROXY_E_SUCCESS when the thread was created (async mode), or
* when the command completed successfully (sync).
- * An INSTPROXY_E_* error value is returned if an error occured.
+ * An INSTPROXY_E_* error value is returned if an error occurred.
*/
static instproxy_error_t instproxy_receive_status_loop_with_callback(instproxy_client_t client, plist_t command, instproxy_command_type_t async, instproxy_status_cb_t status_cb, void *user_data)
{
@@ -505,7 +505,7 @@ static instproxy_error_t instproxy_receive_status_loop_with_callback(instproxy_c
* @param user_data Callback data passed to status_cb.
*
* @return INSTPROXY_E_SUCCESS on success or an INSTPROXY_E_* error value if
- * an error occured.
+ * an error occurred.
*/
static instproxy_error_t instproxy_perform_command(instproxy_client_t client, plist_t command, instproxy_command_type_t async, instproxy_status_cb_t status_cb, void *user_data)
{
diff --git a/src/lockdown.c b/src/lockdown.c
index 1a162ed..23f2782 100644
--- a/src/lockdown.c
+++ b/src/lockdown.c
@@ -219,7 +219,7 @@ static lockdownd_error_t lockdown_check_result(plist_t dict, const char *query_m
ret = lockdownd_strtoerr(err_value);
free(err_value);
} else {
- debug_info("ERROR: unknown error occured");
+ debug_info("ERROR: unknown error occurred");
}
}
return ret;
diff --git a/src/misagent.c b/src/misagent.c
index 095edba..91b8acb 100644
--- a/src/misagent.c
+++ b/src/misagent.c
@@ -57,7 +57,7 @@ static misagent_error_t misagent_error(property_list_service_error_t err)
/**
* Checks the response from misagent to determine if the operation
- * was successful or an error occured. Internally used only.
+ * was successful or an error occurred. Internally used only.
*
* @param response a PLIST_DICT received from device's misagent
* @param status_code pointer to an int that will be set to the status code
diff --git a/src/notification_proxy.c b/src/notification_proxy.c
index cd8e64c..eea01ca 100644
--- a/src/notification_proxy.c
+++ b/src/notification_proxy.c
@@ -247,7 +247,7 @@ LIBIMOBILEDEVICE_API np_error_t np_observe_notifications(np_client_t client, con
* with the notification that has been received.
*
* @return 0 if a notification has been received or nothing has been received,
- * or a negative value if an error occured.
+ * or a negative value if an error occurred.
*
* @note You probably want to check out np_set_notify_callback
* @see np_set_notify_callback
@@ -267,7 +267,7 @@ static int np_get_notification(np_client_t client, char **notification)
debug_info("NotificationProxy: no notification received!");
res = 0;
} else if (perr != PROPERTY_LIST_SERVICE_E_SUCCESS) {
- debug_info("NotificationProxy: error %d occured!", perr);
+ debug_info("NotificationProxy: error %d occurred!", perr);
res = perr;
}
if (dict) {
diff --git a/src/restore.c b/src/restore.c
index 4b578c2..6571a2f 100644
--- a/src/restore.c
+++ b/src/restore.c
@@ -41,7 +41,7 @@
*
* @return RESULT_SUCCESS when the result is 'Success',
* RESULT_FAILURE when the result is 'Failure',
- * or a negative value if an error occured during evaluation.
+ * or a negative value if an error occurred during evaluation.
*/
static int restored_check_result(plist_t dict)
{
diff --git a/tools/idevicebackup.c b/tools/idevicebackup.c
index cd69bcc..de08295 100644
--- a/tools/idevicebackup.c
+++ b/tools/idevicebackup.c
@@ -995,7 +995,7 @@ int main(int argc, char *argv[])
} else if (err == MOBILEBACKUP_E_REPLY_NOT_OK) {
printf("ERROR: Could not start backup process: device refused to start the backup process.\n");
} else {
- printf("ERROR: Could not start backup process: unspecified error occured\n");
+ printf("ERROR: Could not start backup process: unspecified error occurred\n");
}
break;
}
@@ -1342,7 +1342,7 @@ files_out:
} else if (err == MOBILEBACKUP_E_REPLY_NOT_OK) {
printf("ERROR: Could not start restore process: device refused to start the restore process.\n");
} else {
- printf("ERROR: Could not start restore process: unspecified error occured (%d)\n", err);
+ printf("ERROR: Could not start restore process: unspecified error occurred (%d)\n", err);
}
plist_free(backup_data);
break;
diff --git a/tools/idevicebackup2.c b/tools/idevicebackup2.c
index 0aae36e..58fda8d 100644
--- a/tools/idevicebackup2.c
+++ b/tools/idevicebackup2.c
@@ -1954,7 +1954,7 @@ checkpoint:
} else if (err == MOBILEBACKUP2_E_REPLY_NOT_OK) {
printf("ERROR: Could not start backup process: device refused to start the backup process.\n");
} else {
- printf("ERROR: Could not start backup process: unspecified error occured\n");
+ printf("ERROR: Could not start backup process: unspecified error occurred\n");
}
cmd = CMD_LEAVE;
}
@@ -2012,7 +2012,7 @@ checkpoint:
} else if (err == MOBILEBACKUP2_E_REPLY_NOT_OK) {
printf("ERROR: Could not start restore process: device refused to start the restore process.\n");
} else {
- printf("ERROR: Could not start restore process: unspecified error occured\n");
+ printf("ERROR: Could not start restore process: unspecified error occurred\n");
}
cmd = CMD_LEAVE;
}