Do all calculations using uintmax_t.
authorJim Meyering <jim@meyering.net>
Sun, 30 Nov 1997 10:24:24 +0000 (10:24 +0000)
committerJim Meyering <jim@meyering.net>
Sun, 30 Nov 1997 10:24:24 +0000 (10:24 +0000)
commit25fabf3d2d582be9edc47b54f6f8bd3a020af226
treef712651dd7d50ba392d779a8f04723fe49dfe6cc
parentf633782aa195bfffd88950f73135db26297bff2e
Do all calculations using uintmax_t.
Include <inttypes.h> if available.
(adjust_blocks, CONVERT_BLOCKS): Remove.
(get_fs_usage): Set new member fsu_blocksize, and do not convert
numbers to 512-byte block units; this avoids overflow here.
Cast lseek arg to off_t, not long.
lib/fsusage.c