]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(remove_cwd_entries): Use closedir (not CLOSEDIR) when ignoring any return value.
authorJim Meyering <jim@meyering.net>
Thu, 29 Aug 2002 10:13:57 +0000 (10:13 +0000)
committerJim Meyering <jim@meyering.net>
Thu, 29 Aug 2002 10:13:57 +0000 (10:13 +0000)
src/remove.c

index 15ea10d2fea2439e3640b3db7e9db6ba5c1c5d43..11df3fa546a7913ee22f8fb6c491e022f3de09f9 100644 (file)
@@ -823,7 +823,7 @@ remove_cwd_entries (char **subdir, struct stat *subdir_sb,
            {
              /* Save/restore errno across closedir call.  */
              int e = errno;
-             CLOSEDIR (dirp);
+             closedir (dirp);
              errno = e;
 
              /* Arrange to give a diagnostic after exiting this loop.  */