aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
Diffstat (limited to 'util')
-rw-r--r--util/regcomp.c4
-rw-r--r--util/regex_internal.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/util/regcomp.c b/util/regcomp.c
index 6964df93e..aafb9c853 100644
--- a/util/regcomp.c
+++ b/util/regcomp.c
@@ -1764,7 +1764,7 @@ peek_token_bracket (token, input, syntax)
/* Entry point of the parser.
Parse the regular expression REGEXP and return the structure tree.
- If an error is occured, ERR is set by error code, and return NULL.
+ If an error is occurred, ERR is set by error code, and return NULL.
This function build the following tree, from regular expression <reg_exp>:
CAT
/ \
@@ -3349,7 +3349,7 @@ build_word_op (dfa, not, err)
/* This is intended for the expressions like "a{1,3}".
Fetch a number from `input', and return the number.
Return -1, if the number field is empty like "{,1}".
- Return -2, If an error is occured. */
+ Return -2, If an error is occurred. */
static int
fetch_number (input, token, syntax)
diff --git a/util/regex_internal.c b/util/regex_internal.c
index 6f3a96e7d..4349f1b6d 100644
--- a/util/regex_internal.c
+++ b/util/regex_internal.c
@@ -793,7 +793,7 @@ re_node_set_merge (dest, src)
/* Insert the new element ELEM to the re_node_set* SET.
return 0 if SET already has ELEM,
- return -1 if an error is occured, return 1 otherwise. */
+ return -1 if an error is occurred, return 1 otherwise. */
static int
re_node_set_insert (set, elem)
@@ -909,7 +909,7 @@ re_node_set_remove_at (set, idx)
/* Add the token TOKEN to dfa->nodes, and return the index of the token.
- Or return -1, if an error will be occured. */
+ Or return -1, if an error will be occurred. */
static int
re_dfa_add_node (dfa, token, mode)