From f68a40cdf94c87a065d7f9393e84adc6f93a34bf Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Sat, 23 Nov 2013 22:39:34 +0000 Subject: [PATCH] 2013-11-23 Bryan Dunsmore * libc/include/wordexp.h (wordexp): Add restrict keyword. * libc/posix/wordexp.c (wordexp): Ditto. --- newlib/ChangeLog | 5 +++++ newlib/libc/include/wordexp.h | 2 +- newlib/libc/posix/wordexp.c | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/newlib/ChangeLog b/newlib/ChangeLog index 4931f5dda..c379d53c6 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,3 +1,8 @@ +2013-11-23 Bryan Dunsmore + + * libc/include/wordexp.h (wordexp): Add restrict keyword. + * libc/posix/wordexp.c (wordexp): Ditto. + 2013-11-22 Bryan Dunsmore * libc/include/sys/time.h (gettimeofday): Add restrict keyword. diff --git a/newlib/libc/include/wordexp.h b/newlib/libc/include/wordexp.h index 8f87681a9..1f09a64c5 100644 --- a/newlib/libc/include/wordexp.h +++ b/newlib/libc/include/wordexp.h @@ -43,7 +43,7 @@ enum { /* Note: This implementation of wordexp requires a version of bash that supports the --wordexp and --protected arguments to be present on the system. It does not support the WRDE_UNDEF flag. */ -int wordexp(const char *, wordexp_t *, int); +int wordexp(const char *__restrict, wordexp_t *__restrict, int); void wordfree(wordexp_t *); #ifdef __cplusplus diff --git a/newlib/libc/posix/wordexp.c b/newlib/libc/posix/wordexp.c index 5c58e461a..3e90c3aee 100644 --- a/newlib/libc/posix/wordexp.c +++ b/newlib/libc/posix/wordexp.c @@ -29,7 +29,7 @@ that supports the --wordexp and --protected arguments to be present on the system. It does not support the WRDE_UNDEF flag. */ int -wordexp(const char *words, wordexp_t *pwordexp, int flags) +wordexp(const char *__restrict words, wordexp_t *__restrict pwordexp, int flags) { FILE *f = NULL; FILE *f_err = NULL;