mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 17:18:32 +00:00
Remove hack from rev 1.15; getbsize(3)'s original interface has been
restored.
This commit is contained in:
parent
bc6ba9aec6
commit
9255f32701
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=108459
|
@ -211,7 +211,6 @@ swaplist(int lflag, int sflag, int hflag)
|
|||
size_t mibsize, size;
|
||||
struct xswdev xsw;
|
||||
int hlen, mib[16], n, pagesize;
|
||||
size_t hsize;
|
||||
long blocksize;
|
||||
long long total = 0;
|
||||
long long used = 0;
|
||||
|
@ -229,8 +228,7 @@ swaplist(int lflag, int sflag, int hflag)
|
|||
hlen = 10;
|
||||
break;
|
||||
default:
|
||||
getbsize(&hsize, &blocksize);
|
||||
hlen = hsize;
|
||||
getbsize(&hlen, &blocksize);
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue