aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/regex/regexec.c
diff options
context:
space:
mode:
authorMike Barcroft <mike@FreeBSD.org>2002-10-02 07:49:35 +0000
committerMike Barcroft <mike@FreeBSD.org>2002-10-02 07:49:35 +0000
commit4047df8d249eb931f75bb645dee9761946216fbd (patch)
treee9e33ee1e527e372ff8dc15fd1eb11b996ab444f /lib/libc/regex/regexec.c
parenta4319fd03db836c56860bca0ac87e406850f6828 (diff)
downloadsrc-4047df8d249eb931f75bb645dee9761946216fbd.tar.gz
src-4047df8d249eb931f75bb645dee9761946216fbd.zip
Add restrict type-qualifier.
Notes
Notes: svn path=/head/; revision=104358
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 a23c61c55972..abbd9bae5635 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;