diff --git a/dir.c b/dir.c index 6a926f438cc46f..2e409741ccc298 100644 --- a/dir.c +++ b/dir.c @@ -2022,12 +2022,12 @@ dirent_match(const char *pat, rb_encoding *enc, const char *name, const struct d struct push_glob_args { int fd; + int flags; const char *path; size_t baselen; size_t namelen; int dirsep; /* '/' should be placed before appending child entry's name to 'path'. */ rb_pathtype_t pathtype; /* type of 'path' */ - int flags; const ruby_glob_funcs_t *funcs; VALUE arg; }; @@ -2448,8 +2448,8 @@ static int ruby_glob0(const char *path, int fd, const char *base, int flags, struct push_glob0_args { int fd; - const char *base; int flags; + const char *base; const ruby_glob_funcs_t *funcs; VALUE arg; };