summaryrefslogtreecommitdiffstats
path: root/lib/libc/regex/regexec.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/regex/regexec.c')
-rw-r--r--lib/libc/regex/regexec.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc/regex/regexec.c b/lib/libc/regex/regexec.c
index a23c61c..abbd9ba 100644
--- a/lib/libc/regex/regexec.c
+++ b/lib/libc/regex/regexec.c
@@ -156,10 +156,10 @@ static int nope = 0; /* for use in asserts; shuts lint up */
*/
int /* 0 success, REG_NOMATCH failure */
regexec(preg, string, nmatch, pmatch, eflags)
-const regex_t *preg;
-const char *string;
+const regex_t * __restrict preg;
+const char * __restrict string;
size_t nmatch;
-regmatch_t pmatch[];
+regmatch_t pmatch[__restrict];
int eflags;
{
struct re_guts *g = preg->re_g;
OpenPOWER on IntegriCloud