projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
don't write openpty results until success is determined
[musl]
/
src
/
regex
/
glob.c
diff --git
a/src/regex/glob.c
b/src/regex/glob.c
index
3476e01
..
6affee0
100644
(file)
--- a/
src/regex/glob.c
+++ b/
src/regex/glob.c
@@
-7,8
+7,6
@@
#include <stdlib.h>
#include <errno.h>
#include <stddef.h>
#include <stdlib.h>
#include <errno.h>
#include <stddef.h>
-#include <unistd.h>
-#include <stdio.h>
#include "libc.h"
struct match
#include "libc.h"
struct match
@@
-156,7
+154,7
@@
static int sort(const void *a, const void *b)
return strcmp(*(const char **)a, *(const char **)b);
}
return strcmp(*(const char **)a, *(const char **)b);
}
-int glob(const char *
pat, int flags, int (*errfunc)(const char *path, int err), glob_t *
g)
+int glob(const char *
restrict pat, int flags, int (*errfunc)(const char *path, int err), glob_t *restrict
g)
{
const char *p=pat, *d;
struct match head = { .next = NULL }, *tail = &head;
{
const char *p=pat, *d;
struct match head = { .next = NULL }, *tail = &head;