Make the first argument to getbsize(3) a `size_t *'. This is a hack
since getbsize(3) should have `int *' as its first parameter.
This commit is contained in:
parent
442f088676
commit
69095b0264
@ -210,8 +210,8 @@ swaplist(int lflag, int sflag, int hflag)
|
||||
{
|
||||
size_t mibsize, size;
|
||||
struct xswdev xsw;
|
||||
int mib[16], n, pagesize;
|
||||
size_t hlen;
|
||||
int hlen, mib[16], n, pagesize;
|
||||
size_t hsize;
|
||||
long blocksize;
|
||||
long long total = 0;
|
||||
long long used = 0;
|
||||
@ -229,7 +229,8 @@ swaplist(int lflag, int sflag, int hflag)
|
||||
hlen = 10;
|
||||
break;
|
||||
default:
|
||||
getbsize(&hlen, &blocksize);
|
||||
getbsize(&hsize, &blocksize);
|
||||
hlen = hsize;
|
||||
break;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user