From: Jim Meyering Date: Fri, 7 Mar 2003 19:47:18 +0000 (+0000) Subject: Remove everything associated with mmap-stack.c. X-Git-Tag: v4.5.10~101 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6d1bd5a97dbeeb5a8c76d39d0c3ed9c5f3b9de16;p=thirdparty%2Fcoreutils.git Remove everything associated with mmap-stack.c. This reverts the change of 2003-02-19. --- diff --git a/src/du.c b/src/du.c index 62dcbafa6b..c8624ab082 100644 --- a/src/du.c +++ b/src/du.c @@ -37,7 +37,6 @@ #include "ftw.h" #include "hash.h" #include "human.h" -#include "mmap-stack.h" #include "quote.h" #include "quotearg.h" #include "same.h" @@ -494,8 +493,7 @@ is_symlink_to_dir (char const *file) FTW_FLAGS controls how nftw works. Return nonzero upon error. */ -static void du_files (char **files, int ftw_flags) ATTRIBUTE_NORETURN; -static void +static int du_files (char **files, int ftw_flags) { int fail = 0; @@ -542,7 +540,7 @@ du_files (char **files, int ftw_flags) if (print_totals) print_size (tot_size, _("total")); - exit (fail || G_fail ? EXIT_FAILURE : EXIT_SUCCESS); + return fail; } int @@ -719,5 +717,6 @@ main (int argc, char **argv) /* Initialize the hash structure for inode numbers. */ hash_init (); - RUN_WITH_BIG_STACK_2 (du_files, files, ftw_flags); + exit (du_files (files, ftw_flags) || G_fail + ? EXIT_FAILURE : EXIT_SUCCESS); }