summaryrefslogtreecommitdiffstats
path: root/mount/swapon.c
diff options
context:
space:
mode:
authorKarel Zak2009-03-03 14:15:35 +0100
committerKarel Zak2009-03-03 15:21:38 +0100
commit1581e22c35b6e6ac2c2d6deae9f9f57921f90ae1 (patch)
tree90ea5019c47b5bf5ab501c1a99ff500c039862d9 /mount/swapon.c
parentswapon: rewrite SWSUSPEND signature rather than exec mkswap (diff)
downloadkernel-qcow2-util-linux-1581e22c35b6e6ac2c2d6deae9f9f57921f90ae1.tar.gz
kernel-qcow2-util-linux-1581e22c35b6e6ac2c2d6deae9f9f57921f90ae1.tar.xz
kernel-qcow2-util-linux-1581e22c35b6e6ac2c2d6deae9f9f57921f90ae1.zip
swapon: cleanup man page
The patch also fix stupid bug in swapoff long options array. Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'mount/swapon.c')
-rw-r--r--mount/swapon.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mount/swapon.c b/mount/swapon.c
index d61ff7437..b795ba05b 100644
--- a/mount/swapon.c
+++ b/mount/swapon.c
@@ -73,7 +73,7 @@ static struct option longswaponopts[] = {
{ NULL, 0, 0, 0 }
};
-static struct option *longswapoffopts = &longswaponopts[2];
+static struct option *longswapoffopts = &longswaponopts[3];
static int cannot_find(const char *special);