diff options
Diffstat (limited to '')
-rw-r--r-- | src/expand.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/expand.c b/src/expand.c index 1730670..623b4ce 100644 --- a/src/expand.c +++ b/src/expand.c @@ -1282,9 +1282,9 @@ expmeta(char *name, unsigned name_len, unsigned expdir_len) char *start; char *endname; int metaflag; - struct stat64 statb; + struct stat statb; DIR *dirp; - struct dirent64 *dp; + struct dirent *dp; int atend; int matchdot; int esc; @@ -1327,7 +1327,7 @@ expmeta(char *name, unsigned name_len, unsigned expdir_len) p++; *enddir++ = *p; } while (*p++); - if (lstat64(expdir, &statb) >= 0) + if (lstat(expdir, &statb) >= 0) addfname(expdir); return; } @@ -1361,7 +1361,7 @@ expmeta(char *name, unsigned name_len, unsigned expdir_len) p++; if (*p == '.') matchdot++; - while (! int_pending() && (dp = readdir64(dirp)) != NULL) { + while (! int_pending() && (dp = readdir(dirp)) != NULL) { if (dp->d_name[0] == '.' && ! matchdot) continue; if (pmatch(start, dp->d_name)) { |