mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Back out rev 1.44; getbsize(3)'s original interface has been restored.
Approved by: markm
This commit is contained in:
parent
d98744aa7b
commit
dc474219b6
1 changed files with 3 additions and 4 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue