summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authormike <mike@FreeBSD.org>2002-12-30 18:10:37 +0000
committermike <mike@FreeBSD.org>2002-12-30 18:10:37 +0000
commit85024903d7dcc47731e8d78be009841681a358a4 (patch)
treee492aaf5c456c5d9eab60578ac562b71dd001480 /bin
parenta7323e545317c6f09c5c558dd94c609a15ee5d25 (diff)
downloadFreeBSD-src-85024903d7dcc47731e8d78be009841681a358a4.zip
FreeBSD-src-85024903d7dcc47731e8d78be009841681a358a4.tar.gz
Back out rev 1.44; getbsize(3)'s original interface has been restored.
Approved by: markm
Diffstat (limited to 'bin')
-rw-r--r--bin/df/df.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/bin/df/df.c b/bin/df/df.c
index e4cd86e..58a2320 100644
--- a/bin/df/df.c
+++ b/bin/df/df.c
@@ -381,8 +381,7 @@ static void
prtstat(struct statfs *sfsp, struct maxwidths *mwp)
{
static long blocksize;
- static int timesthrough;
- static size_t headerlen;
+ static int headerlen, timesthrough;
static const char *header;
long used, availblks, inodes;
@@ -393,7 +392,7 @@ prtstat(struct statfs *sfsp, struct maxwidths *mwp)
mwp->total = mwp->used = mwp->avail = strlen(header);
} else {
header = getbsize(&headerlen, &blocksize);
- mwp->total = imax(mwp->total, (int)headerlen);
+ mwp->total = imax(mwp->total, headerlen);
}
mwp->used = imax(mwp->used, strlen("Used"));
mwp->avail = imax(mwp->avail, strlen("Avail"));
@@ -442,7 +441,7 @@ static void
update_maxwidths(struct maxwidths *mwp, struct statfs *sfsp)
{
static long blocksize;
- size_t dummy;
+ int dummy;
if (blocksize == 0)
getbsize(&dummy, &blocksize);
OpenPOWER on IntegriCloud