diff options
Diffstat (limited to 'newlib/libc')
-rw-r--r-- | newlib/libc/include/glob.h | 3 | ||||
-rw-r--r-- | newlib/libc/posix/glob.c | 4 |
2 files changed, 4 insertions, 3 deletions
diff --git a/newlib/libc/include/glob.h b/newlib/libc/include/glob.h index a7351350d..7a300e69d 100644 --- a/newlib/libc/include/glob.h +++ b/newlib/libc/include/glob.h @@ -82,7 +82,8 @@ typedef struct { #define GLOB_ABEND (-2) /* Unignored error. */ __BEGIN_DECLS -int glob(const char *, int, int (*)(const char *, int), glob_t *); +int glob(const char *__restrict, int, int (*)(const char *, int), + glob_t *__restrict); void globfree(glob_t *); __END_DECLS diff --git a/newlib/libc/posix/glob.c b/newlib/libc/posix/glob.c index 977a5a4f8..5e6c2fcba 100644 --- a/newlib/libc/posix/glob.c +++ b/newlib/libc/posix/glob.c @@ -158,9 +158,9 @@ static void qprintf(const char *, Char *); int glob(pattern, flags, errfunc, pglob) - const char *pattern; + const char *__restrict pattern; int flags, (*errfunc)(const char *, int); - glob_t *pglob; + glob_t *__restrict pglob; { const u_char *patnext; int c, limit; |