Use humanize_number() from libtool instead of rolling our own version for
commitf56a41920f41487f99b13f55e3fd262816727f52
authorSascha Wildner <swildner@dragonflybsd.org>
Sat, 2 Aug 2008 22:56:52 +0000 (2 22:56 +0000)
committerSascha Wildner <swildner@dragonflybsd.org>
Sat, 2 Aug 2008 22:56:52 +0000 (2 22:56 +0000)
tree95f485d5569c109ca3b918fe90a38f550265ae0b
parentb45dd1422f266440a1aac62d88cdb6d57ef8cd3f
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