Use humanize_number() from libtool instead of rolling our own version for
authorSascha Wildner <swildner@dragonflybsd.org>
Sat, 2 Aug 2008 22:56:52 +0000 (22:56 +0000)
committerSascha Wildner <swildner@dragonflybsd.org>
Sat, 2 Aug 2008 22:56:52 +0000 (22:56 +0000)
commitda3084db401ca11536b0dcdfc2421f12bf98093b
tree2b9ca19285d7cc8fec3b5baf31f9c0051f953155
parentf153644d2aeb4d0fc445eda11b28557fa4a005c9
Use humanize_number() from libtool instead of rolling our own version for
-h and -H.

As a side effect, this fixes an issue with showing a negative value in
the 'Avail' column (for UFS file systems which are using the MINFREE
reserve) by casting f_bavail to signed when passing it to prthumanval(),
like it was done before already for fstoblk().

f_bavail used to be signed in struct fsstat but is now unsigned in struct
vfsstat (in accordance with SUS).

Taken-from: FreeBSD
bin/df/Makefile
bin/df/df.c