summaryrefslogtreecommitdiff
path: root/src/du.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2004-03-27 15:44:23 +0000
committerJim Meyering <jim@meyering.net>2004-03-27 15:44:23 +0000
commita35cbe5258b4cee775d797b84f300f38057a7193 (patch)
tree3b59beea177b5a8c42c76f455d4812463fb94139 /src/du.c
parentaf195053218cd6c2f44c81d0c771cfd364ec6cf9 (diff)
downloadcoreutils-a35cbe5258b4cee775d797b84f300f38057a7193.tar.xz
(print_grand_total): Rename global from `print_totals'.
Diffstat (limited to 'src/du.c')
-rw-r--r--src/du.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/du.c b/src/du.c
index 7ecaede1a..eb0212249 100644
--- a/src/du.c
+++ b/src/du.c
@@ -91,7 +91,7 @@ static int opt_count_all = 0;
bool opt_nul_terminate_output = false;
/* If nonzero, print a grand total at the end. */
-static int print_totals = 0;
+static int print_grand_total = 0;
/* If nonzero, do not add sizes of subdirectories. */
static int opt_separate_dirs = 0;
@@ -521,7 +521,7 @@ du_files (char **files, int bit_flags)
/* This is a space optimization. If we aren't printing totals,
then it's ok to clear the duplicate-detection tables after
each command line hierarchy has been processed. */
- if (ent->fts_level == 0 && ent->fts_info == FTS_D && !print_totals)
+ if (ent->fts_level == 0 && ent->fts_info == FTS_D && !print_grand_total)
hash_clear (htab);
process_file (fts, ent);
@@ -533,7 +533,7 @@ du_files (char **files, int bit_flags)
fts_close (fts);
}
- if (print_totals)
+ if (print_grand_total)
print_size (tot_size, _("total"));
return fail;
@@ -607,7 +607,7 @@ main (int argc, char **argv)
break;
case 'c':
- print_totals = 1;
+ print_grand_total = 1;
break;
case 'h':