diff options
author | mike <mike@FreeBSD.org> | 2002-12-30 18:24:14 +0000 |
---|---|---|
committer | mike <mike@FreeBSD.org> | 2002-12-30 18:24:14 +0000 |
commit | 565badda7fa072cb92b6ed6dd3e8c2bccd5b6d84 (patch) | |
tree | 1b3ac8e9a5874cffdabbc6d9cb549b978fbdbc39 /sbin/swapon | |
parent | 8540c7c57c583f9560915e5b14bab57462001742 (diff) | |
download | FreeBSD-src-565badda7fa072cb92b6ed6dd3e8c2bccd5b6d84.zip FreeBSD-src-565badda7fa072cb92b6ed6dd3e8c2bccd5b6d84.tar.gz |
Remove hack from rev 1.15; getbsize(3)'s original interface has been
restored.
Diffstat (limited to 'sbin/swapon')
-rw-r--r-- | sbin/swapon/swapon.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sbin/swapon/swapon.c b/sbin/swapon/swapon.c index d2d71f2..82af8be 100644 --- a/sbin/swapon/swapon.c +++ b/sbin/swapon/swapon.c @@ -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; } |