diff options
author | Paul Smith <psmith@gnu.org> | 2014-04-25 17:38:08 -0400 |
---|---|---|
committer | Paul Smith <psmith@gnu.org> | 2014-07-07 01:59:03 -0400 |
commit | 423c3955d97dc84986be08ed0074d8eb58c624ef (patch) | |
tree | 1a8e0f15f0dc8d22ed7c2472c87fc71ea1434e0c /dir.c | |
parent | ac67346d0fb5e5ea359d34c2c9215bd1892455f3 (diff) | |
download | make-423c3955d97dc84986be08ed0074d8eb58c624ef.tar.gz |
* various: Assume ISO C89-compliant free() implementation.
Diffstat (limited to 'dir.c')
-rw-r--r-- | dir.c | 9 |
1 files changed, 1 insertions, 8 deletions
@@ -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. */ |