summaryrefslogtreecommitdiffstats
path: root/sbin/swapon
diff options
context:
space:
mode:
authormike <mike@FreeBSD.org>2002-12-30 18:24:14 +0000
committermike <mike@FreeBSD.org>2002-12-30 18:24:14 +0000
commit565badda7fa072cb92b6ed6dd3e8c2bccd5b6d84 (patch)
tree1b3ac8e9a5874cffdabbc6d9cb549b978fbdbc39 /sbin/swapon
parent8540c7c57c583f9560915e5b14bab57462001742 (diff)
downloadFreeBSD-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.c4
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;
}
OpenPOWER on IntegriCloud