diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2006-08-25 23:08:58 +0000 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2006-08-25 23:08:58 +0000 |
commit | db3f6c256b231300775742c8b956d8451a62d517 (patch) | |
tree | b6f447385dc9bfec7412643ec244a2f365018c7c /src/ls.c | |
parent | 03a5310540fbc082eb409db77013cdd74c90f4ae (diff) | |
download | coreutils-db3f6c256b231300775742c8b956d8451a62d517.tar.xz |
Rewrite to avoid some unnecessary casts, macros, literals.
(DEFAULT_PASSES, VERBOSE_UPDATE): Now constants, not macros.
(SECTOR_SIZE, SECTOR_MASK): New constants.
(fillpattern, dopass, do_wipefd, main): Remove unnecessary casts,
and use the SECTOR_* constants when applicable. Check for size <
0 rather than size == -1, since negative-size files are a sign of
trouble anyway.
(dopass): Assume a continuable error if EIO even if the current
position is not a multiple of 512.
Diffstat (limited to 'src/ls.c')
0 files changed, 0 insertions, 0 deletions