2013-11-21 Julio Gutierrez <jgutleyva@gmail.com>

* libc/include/glob.h (glob): Add restrict keyword.
	* libc/posix/glob.c (glob): Ditto.
This commit is contained in:
Joel Sherrill 2013-11-21 17:04:57 +00:00
parent a7c3258311
commit 9977fcbc42
3 changed files with 9 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2013-11-21 Julio Gutierrez <jgutleyva@gmail.com>
* libc/include/glob.h (glob): Add restrict keyword.
* libc/posix/glob.c (glob): Ditto.
2013-11-21 Joel Sherrill <joel.sherrill@oarcorp.com>
* libc/posix/readdir_r.c: Add restrict keyword.

View File

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

View File

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