summaryrefslogtreecommitdiff
path: root/dir.c
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2014-07-07 01:59:03 -0400
committerPaul Smith <psmith@gnu.org>2014-07-07 01:59:03 -0400
commit475d52f2c41761349963683ab61eea4eef7a4915 (patch)
tree1a8e0f15f0dc8d22ed7c2472c87fc71ea1434e0c /dir.c
parentbe009b9a889f4c58f69b4fb4bd8f5e98b9700555 (diff)
downloadmake-475d52f2c41761349963683ab61eea4eef7a4915.tar.gz
* various: Assume ISO C89-compliant free() implementation.
Diffstat (limited to 'dir.c')
-rw-r--r--dir.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/dir.c b/dir.c
index 77b7bfeb..01373b37 100644
--- a/dir.c
+++ b/dir.c
@@ -1172,13 +1172,6 @@ read_dirstream (__ptr_t stream)
return 0;
}
-static void
-ansi_free (void *p)
-{
- if (p)
- free (p);
-}
-
/* On 64 bit ReliantUNIX (5.44 and above) in LFS mode, stat() is actually a
* macro for stat64(). If stat is a macro, make a local wrapper function to
* invoke it.
@@ -1224,7 +1217,7 @@ dir_setup_glob (glob_t *gl)
{
gl->gl_opendir = open_dirstream;
gl->gl_readdir = read_dirstream;
- gl->gl_closedir = ansi_free;
+ gl->gl_closedir = free;
gl->gl_stat = local_stat;
/* We don't bother setting gl_lstat, since glob never calls it.
The slot is only there for compatibility with 4.4 BSD. */