(fts_debug, opt_all, apparent_size, opt_count_all,
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 2 Aug 2004 19:43:38 +0000 (19:43 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 2 Aug 2004 19:43:38 +0000 (19:43 +0000)
commite4d5fc228349cf93a89fa184ba0d1e5db52d5fc0
tree7c99f696fc5f417f7b82bec45ded385a42326e50
parentc1bbe24045ae919d1fc2dbf225d030828632c7c8
(fts_debug, opt_all, apparent_size, opt_count_all,
print_grand_total, opt_separate_dirs, hash_ins, process_file, main):
Use bool for booleans.
(max_depth): Now size_t, not int, to avoid an arbitrary limit
of INT_MAX on depth.
(G_fail): Remove: no longer needed, now that the relevant
functions return bool.
(process_file): Use return value to signal success rather than
setting a global.  Remove first_call static var; not needed, since
we can look at n_alloc.  Use size_t for depths.  Remove FIXME
about size_t casts, as it's now fixed.  Use xnrealloc rather
than the obsolescent XREALLOC.  Don't bother to check whether
reallocation is needed unless level > prev_level.
(du_files): Invert sense of result, for consistency with
other coreutils code.  All callers changed.
(main): Allow --max-depth values up to SIZE_MAX.
src/du.c