diff options
author | mike <mike@FreeBSD.org> | 2002-12-30 05:35:06 +0000 |
---|---|---|
committer | mike <mike@FreeBSD.org> | 2002-12-30 05:35:06 +0000 |
commit | 8dbf6198d3647831b63eecc5c0a4048c5aaf70a7 (patch) | |
tree | 897a91fce94a699a31c576b6ee82d5beb72b76a3 /sbin/swapon | |
parent | 37d639b43aab1c6d3e8bd862fda94c0ed2c64055 (diff) | |
download | FreeBSD-src-8dbf6198d3647831b63eecc5c0a4048c5aaf70a7.zip FreeBSD-src-8dbf6198d3647831b63eecc5c0a4048c5aaf70a7.tar.gz |
Make the first argument to getbsize(3) a `size_t *'. This is a hack
since getbsize(3) should have `int *' as its first parameter.
Diffstat (limited to 'sbin/swapon')
-rw-r--r-- | sbin/swapon/swapon.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sbin/swapon/swapon.c b/sbin/swapon/swapon.c index d908b4a..d2d71f2 100644 --- a/sbin/swapon/swapon.c +++ b/sbin/swapon/swapon.c @@ -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; } |