summaryrefslogtreecommitdiff
path: root/src/regex/regerror.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/regex/regerror.c')
-rw-r--r--src/regex/regerror.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/regex/regerror.c b/src/regex/regerror.c
index 0645b8e7..df4afa4f 100644
--- a/src/regex/regerror.c
+++ b/src/regex/regerror.c
@@ -26,7 +26,7 @@ static const char messages[] = {
"\0Unknown error"
};
-size_t regerror(int e, const regex_t *preg, char *buf, size_t size)
+size_t regerror(int e, const regex_t *restrict preg, char *restrict buf, size_t size)
{
const char *s;
for (s=messages; e && *s; e--, s+=strlen(s)+1);