2013-11-23 Bryan Dunsmore <dunsmoreb@gmail.com>

* libc/include/wordexp.h (wordexp): Add restrict keyword.
	* libc/posix/wordexp.c (wordexp): Ditto.
This commit is contained in:
Joel Sherrill 2013-11-23 22:39:34 +00:00
parent 3a4ce7315f
commit f68a40cdf9
3 changed files with 7 additions and 2 deletions

View File

@ -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.

View File

@ -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

View File

@ -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;