summaryrefslogtreecommitdiffstats
path: root/sbin/swapon
diff options
context:
space:
mode:
authormike <mike@FreeBSD.org>2002-12-30 05:35:06 +0000
committermike <mike@FreeBSD.org>2002-12-30 05:35:06 +0000
commit8dbf6198d3647831b63eecc5c0a4048c5aaf70a7 (patch)
tree897a91fce94a699a31c576b6ee82d5beb72b76a3 /sbin/swapon
parent37d639b43aab1c6d3e8bd862fda94c0ed2c64055 (diff)
downloadFreeBSD-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.c7
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;
}
OpenPOWER on IntegriCloud