diff options
Diffstat (limited to 'sbin/swapon/swapon.c')
-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; } |