From 423c3955d97dc84986be08ed0074d8eb58c624ef Mon Sep 17 00:00:00 2001 From: Paul Smith Date: Fri, 25 Apr 2014 17:38:08 -0400 Subject: * various: Assume ISO C89-compliant free() implementation. --- dir.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'dir.c') diff --git a/dir.c b/dir.c index 77b7bfe..01373b3 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. */ -- cgit v1.2.3