[PATCH 1/4] maint: fix typos in comments

Bernhard Voelker <[email protected]>
Newsgroups gmane.comp.gnu.findutils.patches,gmane.comp.gnu.findutils.bugs
Message-ID <[email protected]>
* find/tree.c (get_expr): Add missing closing paren.
* find/util.c (insert_primary): s/insure/ensure/
(fatal_nontarget_file_error): s/isssue/issue/
* xargs/xargs.c (XargsStatusValues): s/exites/exited/
---
 find/tree.c   | 2 +-
 find/util.c   | 4 ++--
 xargs/xargs.c | 2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/find/tree.c b/find/tree.c
index 39c1a4ce..9307821d 100644
--- a/find/tree.c
+++ b/find/tree.c
@@ -140,7 +140,7 @@ get_expr (struct predicate **input,
 	  || BI_OP == prev_pred->p_type)
 	  && !this_pred->artificial)
 	{
-	  /* e.g. "find \( -not \)" or "find \( -true -a \" */
+	  /* e.g. "find \( -not \)" or "find \( -true -a \)" */
 	  die (EXIT_FAILURE, 0,
 	       _("expected an expression between '%s' and ')'"),
 	       prev_pred->p_name);
diff --git a/find/util.c b/find/util.c
index 73a0cef2..63de5cce 100644
--- a/find/util.c
+++ b/find/util.c
@@ -114,7 +114,7 @@ insert_primary_withpred (const struct parser_table *entry,
    p_prec	    NO_PREC
 
    Other cells that need to be filled in are defaulted by
-   get_new_pred_chk_op, which is used to insure that the prior node is
+   get_new_pred_chk_op, which is used to ensure that the prior node is
    either not there at all (we are the very first node) or is an
    operator. */
 struct predicate *
@@ -1195,7 +1195,7 @@ nonfatal_nontarget_file_error (int errno_value, const char *name)
 void
 fatal_nontarget_file_error(int errno_value, const char *name)
 {
-  /* We're going to exit fatally, so make sure we always isssue the error
+  /* We're going to exit fatally, so make sure we always issue the error
    * message, even if it will be duplicate.   Motivation: otherwise it may
    * not be clear what went wrong.
    */
diff --git a/xargs/xargs.c b/xargs/xargs.c
index 7e3db67a..272189c3 100644
--- a/xargs/xargs.c
+++ b/xargs/xargs.c
@@ -200,7 +200,7 @@ static struct option const longopts[] =
 */
 enum XargsStatusValues {
   XARGS_EXIT_CLIENT_EXIT_NONZERO = 123, /* utility exited with nonzero status */
-  XARGS_EXIT_CLIENT_EXIT_255 = 124,     /* utility exites with status 255 */
+  XARGS_EXIT_CLIENT_EXIT_255 = 124,     /* utility exited with status 255 */
   XARGS_EXIT_CLIENT_FATAL_SIG = 125,    /* utility died from a fatal signal */
   XARGS_EXIT_COMMAND_CANNOT_BE_RUN = 126, /* canot run the command */
   XARGS_EXIT_COMMAND_NOT_FOUND = 127,	  /* cannot find the command */
-- 
2.33.0
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.