summaryrefslogtreecommitdiff
path: root/glob/glob.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@redhat.com>1995-12-14 11:14:36 +0000
committerRoland McGrath <roland@redhat.com>1995-12-14 11:14:36 +0000
commita89eb210840d50825bde622ecd521aab857d2cdc (patch)
tree829a429553f3aeaa14316dc96436b21de1d8edba /glob/glob.c
parent4356ddddbcc1f3c508058c0e008ca3f9af4936a0 (diff)
downloadgunmake-a89eb210840d50825bde622ecd521aab857d2cdc.tar.gz
Updated from libc
Diffstat (limited to 'glob/glob.c')
-rw-r--r--glob/glob.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/glob/glob.c b/glob/glob.c
index e212576..954960c 100644
--- a/glob/glob.c
+++ b/glob/glob.c
@@ -668,7 +668,7 @@ glob_in_dir (pattern, directory, flags, errfunc, pglob)
stream = ((flags & GLOB_ALTDIRFUNC) ?
(*pglob->gl_opendir) (directory) :
- opendir (directory));
+ (__ptr_t) opendir (directory));
if (stream == NULL)
{
if ((errfunc != NULL && (*errfunc) (directory, errno)) ||
@@ -682,7 +682,7 @@ glob_in_dir (pattern, directory, flags, errfunc, pglob)
size_t len;
struct dirent *d = ((flags & GLOB_ALTDIRFUNC) ?
(*pglob->gl_readdir) (stream) :
- readdir (stream));
+ readdir ((DIR *) stream));
if (d == NULL)
break;
if (! REAL_DIR_ENTRY (d))
@@ -757,7 +757,7 @@ glob_in_dir (pattern, directory, flags, errfunc, pglob)
if (flags & GLOB_ALTDIRFUNC)
(*pglob->gl_closedir) (stream);
else
- closedir (stream);
+ closedir ((DIR *) stream);
errno = save;
}
return nfound == 0 ? GLOB_NOMATCH : 0;
@@ -768,7 +768,7 @@ glob_in_dir (pattern, directory, flags, errfunc, pglob)
if (flags & GLOB_ALTDIRFUNC)
(*pglob->gl_closedir) (stream);
else
- closedir (stream);
+ closedir ((DIR *) stream);
errno = save;
}
while (names != NULL)