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)
commitb8442cede11216a0d657ed4ea441156c2221292a
tree86b499e514f894852791fbe9bd264fa26f500993
parent1cc4ba44c23782d32d4d2986b355e336f5e21335
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