summaryrefslogtreecommitdiffstats
path: root/sbin/swapon/swapon.c
diff options
context:
space:
mode:
Diffstat (limited to 'sbin/swapon/swapon.c')
-rw-r--r--sbin/swapon/swapon.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/swapon/swapon.c b/sbin/swapon/swapon.c
index 2a07b53..d2eebed 100644
--- a/sbin/swapon/swapon.c
+++ b/sbin/swapon/swapon.c
@@ -60,7 +60,7 @@ main(int argc, char **argv)
int ch, doall;
doall = 0;
- while ((ch = getopt(argc, argv, "a")) != EOF)
+ while ((ch = getopt(argc, argv, "a")) != -1)
switch((char)ch) {
case 'a':
doall = 1;
OpenPOWER on IntegriCloud