From d59faea8681995f2d9ce9354665a732bf5a374cd Mon Sep 17 00:00:00 2001 From: Geoffroy Vallee Date: Sun, 24 Nov 2019 00:36:06 -0500 Subject: [PATCH] Fix a type in comments: insertted -> inserted Signed-off-by: Geoffroy Vallee (cherry picked from commit 98de17c6da85eb42963928ecbbcc9ca88fcc0598) Signed-off-by: Geoffrey Paulsen --- opal/class/opal_list.c | 2 +- opal/util/argv.h | 6 +++--- opal/util/cmd_line.c | 2 +- opal/util/opal_environ.h | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/opal/class/opal_list.c b/opal/class/opal_list.c index 87cb1192b1..f61580eeab 100644 --- a/opal/class/opal_list.c +++ b/opal/class/opal_list.c @@ -142,7 +142,7 @@ bool opal_list_insert(opal_list_t *list, opal_list_item_t *item, long long idx) #if OPAL_ENABLE_DEBUG /* Spot check: ensure this item is only on the list that we - just insertted it into */ + just inserted it into */ opal_atomic_add ( &(item->opal_list_item_refcount), 1 ); assert(1 == item->opal_list_item_refcount); diff --git a/opal/util/argv.h b/opal/util/argv.h index 3dd9b4e202..c119d1b0bd 100644 --- a/opal/util/argv.h +++ b/opal/util/argv.h @@ -139,7 +139,7 @@ OPAL_DECLSPEC void opal_argv_free(char **argv); * @retval argv pointer to new argv array on success * @retval NULL on error * - * All strings are insertted into the argv array by value; the + * All strings are inserted into the argv array by value; the * newly-allocated array makes no references to the src_string * argument (i.e., it can be freed after calling this function * without invalidating the output argv). @@ -156,7 +156,7 @@ OPAL_DECLSPEC char **opal_argv_split(const char *src_string, int delimiter) __o * @retval argv pointer to new argv array on success * @retval NULL on error * - * All strings are insertted into the argv array by value; the + * All strings are inserted into the argv array by value; the * newly-allocated array makes no references to the src_string * argument (i.e., it can be freed after calling this function * without invalidating the output argv). @@ -259,7 +259,7 @@ OPAL_DECLSPEC int opal_argv_delete(int *argc, char ***argv, * @retval OPAL_BAD_PARAM if any parameters are non-sensical * * This function takes one arg and inserts it in the middle of - * another. The first token in source will be insertted at index + * another. The first token in source will be inserted at index * start in the target argv; all other tokens will follow it. * Similar to opal_argv_append(), the target may be realloc()'ed * to accomodate the new storage requirements. diff --git a/opal/util/cmd_line.c b/opal/util/cmd_line.c index f17263ac3c..3fe1f26f9b 100644 --- a/opal/util/cmd_line.c +++ b/opal/util/cmd_line.c @@ -383,7 +383,7 @@ int opal_cmd_line_parse(opal_cmd_line_t *cmd, bool ignore_unknown, bool ignore_u /* Suck down the following parameters that belong to this option. If we run out of parameters, or find that any of them are the special_empty_param - (insertted by split_shorts()), then print an error + (inserted by split_shorts()), then print an error and return. */ param = OBJ_NEW(ompi_cmd_line_param_t); diff --git a/opal/util/opal_environ.h b/opal/util/opal_environ.h index 094266c40d..f7dac6adfe 100644 --- a/opal/util/opal_environ.h +++ b/opal/util/opal_environ.h @@ -79,7 +79,7 @@ OPAL_DECLSPEC char **opal_environ_merge(char **minor, char **major) __opal_attri * * \em env is expected to be a NULL-terminated array of pointers * (argv-style). Note that unlike some implementations of - * putenv(3), if \em value is insertted in \em env, it is copied. + * putenv(3), if \em value is inserted in \em env, it is copied. * So the caller can modify/free both \em name and \em value after * opal_setenv() returns. *