diff options
author | markm <markm@FreeBSD.org> | 2002-10-23 22:09:05 +0000 |
---|---|---|
committer | markm <markm@FreeBSD.org> | 2002-10-23 22:09:05 +0000 |
commit | 8024378f1eca0dad8546d9eb04f502995dde60f9 (patch) | |
tree | cb1f7ba2daf0cfa2a130e1330775f9e32e21eb0d /bin/df/df.c | |
parent | 0337df10b74dd2a5fda0bcae34718d73c8781e1b (diff) | |
download | FreeBSD-src-8024378f1eca0dad8546d9eb04f502995dde60f9.zip FreeBSD-src-8024378f1eca0dad8546d9eb04f502995dde60f9.tar.gz |
Fix for changed getbsize arg type.
Diffstat (limited to 'bin/df/df.c')
-rw-r--r-- | bin/df/df.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/bin/df/df.c b/bin/df/df.c index 58a2320..e4cd86e 100644 --- a/bin/df/df.c +++ b/bin/df/df.c @@ -381,7 +381,8 @@ static void prtstat(struct statfs *sfsp, struct maxwidths *mwp) { static long blocksize; - static int headerlen, timesthrough; + static int timesthrough; + static size_t headerlen; static const char *header; long used, availblks, inodes; @@ -392,7 +393,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, headerlen); + mwp->total = imax(mwp->total, (int)headerlen); } mwp->used = imax(mwp->used, strlen("Used")); mwp->avail = imax(mwp->avail, strlen("Avail")); @@ -441,7 +442,7 @@ static void update_maxwidths(struct maxwidths *mwp, struct statfs *sfsp) { static long blocksize; - int dummy; + size_t dummy; if (blocksize == 0) getbsize(&dummy, &blocksize); |