Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/newlib
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@oarcorp.com>2013-11-24 02:39:34 +0400
committerJoel Sherrill <joel.sherrill@oarcorp.com>2013-11-24 02:39:34 +0400
commitf68a40cdf94c87a065d7f9393e84adc6f93a34bf (patch)
treeadef431a9f87acb12637e99e7b240e406cec3c24 /newlib
parent3a4ce7315fb87d51ef8dd46b9064ee766d5dda62 (diff)
2013-11-23 Bryan Dunsmore <dunsmoreb@gmail.com>
* libc/include/wordexp.h (wordexp): Add restrict keyword. * libc/posix/wordexp.c (wordexp): Ditto.
Diffstat (limited to 'newlib')
-rw-r--r--newlib/ChangeLog5
-rw-r--r--newlib/libc/include/wordexp.h2
-rw-r--r--newlib/libc/posix/wordexp.c2
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 <dunsmoreb@gmail.com>
+
+ * libc/include/wordexp.h (wordexp): Add restrict keyword.
+ * libc/posix/wordexp.c (wordexp): Ditto.
+
2013-11-22 Bryan Dunsmore <dunsmoreb@gmail.com>
* 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;