Skip to content

Commit 41594b5

Browse files
committed
fix typos with zend_stat_t
1 parent dc07daf commit 41594b5

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

win32/glob.c

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -161,25 +161,25 @@ struct glob_lim {
161161

162162
struct glob_path_stat {
163163
char *gps_path;
164-
zend_stat stat *gps_stat;
164+
zend_stat_t *gps_stat;
165165
};
166166

167167
static int compare(const void *, const void *);
168168
static int compare_gps(const void *, const void *);
169169
static int g_Ctoc(const Char *, char *, size_t);
170-
static int g_lstat(Char *, zend_stat *, glob_t *);
170+
static int g_lstat(Char *, zend_stat_t *, glob_t *);
171171
static DIR *g_opendir(Char *, glob_t *);
172172
static Char *g_strchr(const Char *, int);
173173
static int g_strncmp(const Char *, const char *, size_t);
174-
static int g_stat(Char *, zend_stat *, glob_t *);
174+
static int g_stat(Char *, zend_stat_t *, glob_t *);
175175
static int glob0(const Char *, glob_t *, struct glob_lim *);
176176
static int glob1(Char *, Char *, glob_t *, struct glob_lim *);
177177
static int glob2(Char *, Char *, Char *, Char *, Char *, Char *,
178178
glob_t *, struct glob_lim *);
179179
static int glob3(Char *, Char *, Char *, Char *, Char *,
180180
Char *, Char *, glob_t *, struct glob_lim *);
181181
static int globextend(const Char *, glob_t *, struct glob_lim *,
182-
zend_stat *);
182+
zend_stat_t *);
183183
static const Char *
184184
globtilde(const Char *, Char *, size_t, glob_t *);
185185
static int globexp1(const Char *, glob_t *, struct glob_lim *);
@@ -663,7 +663,7 @@ static int
663663
glob2(Char *pathbuf, Char *pathbuf_last, Char *pathend, Char *pathend_last,
664664
Char *pattern, Char *pattern_last, glob_t *pglob, struct glob_lim *limitp)
665665
{
666-
zend_stat sb;
666+
zend_stat_t sb;
667667
Char *p, *q;
668668
int anymeta;
669669

@@ -829,13 +829,13 @@ glob3(Char *pathbuf, Char *pathbuf_last, Char *pathend, Char *pathend_last,
829829
*/
830830
static int
831831
globextend(const Char *path, glob_t *pglob, struct glob_lim *limitp,
832-
zend_stat *sb)
832+
zend_stat_t *sb)
833833
{
834834
char **pathv;
835835
size_t i, newn, len;
836836
char *copy = NULL;
837837
const Char *p;
838-
zend_stat **statv;
838+
zend_stat_t **statv;
839839

840840
newn = 2 + pglob->gl_pathc + pglob->gl_offs;
841841
if (pglob->gl_offs >= SSIZE_MAX ||
@@ -1043,7 +1043,7 @@ g_opendir(Char *str, glob_t *pglob)
10431043
}
10441044

10451045
static int
1046-
g_lstat(Char *fn, zend_stat *sb, glob_t *pglob)
1046+
g_lstat(Char *fn, zend_stat_t *sb, glob_t *pglob)
10471047
{
10481048
char buf[PATH_MAX];
10491049

@@ -1055,7 +1055,7 @@ g_lstat(Char *fn, zend_stat *sb, glob_t *pglob)
10551055
}
10561056

10571057
static int
1058-
g_stat(Char *fn, zend_stat *sb, glob_t *pglob)
1058+
g_stat(Char *fn, zend_stat_t *sb, glob_t *pglob)
10591059
{
10601060
char buf[PATH_MAX];
10611061

win32/glob.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ typedef struct {
5050
size_t gl_offs; /* Reserved at beginning of gl_pathv. */
5151
int gl_flags; /* Copy of flags parameter to glob. */
5252
char **gl_pathv; /* List of paths matching pattern. */
53-
zend_stat **gl_statv; /* Stat entries corresponding to gl_pathv */
53+
zend_stat_t **gl_statv; /* Stat entries corresponding to gl_pathv */
5454
/* Copy of errfunc parameter to glob. */
5555
int (*gl_errfunc)(const char *, int);
5656

@@ -62,8 +62,8 @@ typedef struct {
6262
void (*gl_closedir)(void *);
6363
struct dirent *(*gl_readdir)(void *);
6464
void *(*gl_opendir)(const char *);
65-
int (*gl_lstat)(const char *, zend_stat *);
66-
int (*gl_stat)(const char *, zend_stat *);
65+
int (*gl_lstat)(const char *, zend_stat_t *);
66+
int (*gl_stat)(const char *, zend_stat_t *);
6767
} glob_t;
6868

6969
#define GLOB_APPEND 0x0001 /* Append to output from previous call. */

0 commit comments

Comments
 (0)