summaryrefslogtreecommitdiff
path: root/src/regex.c
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@linux-m68k.org>2011-07-30 15:20:04 +0200
committerAndreas Schwab <schwab@linux-m68k.org>2011-07-30 15:20:04 +0200
commit31011111a14e0e16ef8ace01d60efd0afc70494a (patch)
tree2b66acb4a51380b67392ef56f55aa896c502fc2a /src/regex.c
parent294e60d3a0573b4443663049edf3ab6b7c232c6f (diff)
* src/regex.c (re_comp): Protoize.
(re_exec): Fix return type. (regexec): Fix type of `ret'.
Diffstat (limited to 'src/regex.c')
-rw-r--r--src/regex.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/regex.c b/src/regex.c
index 862f848976..545a198acd 100644
--- a/src/regex.c
+++ b/src/regex.c
@@ -6381,8 +6381,7 @@ char *
regcomp/regexec below without link errors. */
weak_function
# endif
-re_comp (s)
- const char *s;
+re_comp (const char *s)
{
reg_errcode_t ret;
@@ -6421,7 +6420,7 @@ re_comp (s)
}
-regoff_t
+int
# ifdef _LIBC
weak_function
# endif
@@ -6558,7 +6557,7 @@ reg_errcode_t
regexec (const regex_t *__restrict preg, const char *__restrict string,
size_t nmatch, regmatch_t pmatch[__restrict_arr], int eflags)
{
- reg_errcode_t ret;
+ regoff_t ret;
struct re_registers regs;
regex_t private_preg;
size_t len = strlen (string);