summaryrefslogtreecommitdiffstats
path: root/text-utils/rev.c
diff options
context:
space:
mode:
Diffstat (limited to 'text-utils/rev.c')
-rw-r--r--text-utils/rev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/text-utils/rev.c b/text-utils/rev.c
index 29b8ee528..e3ac017a0 100644
--- a/text-utils/rev.c
+++ b/text-utils/rev.c
@@ -73,7 +73,7 @@ main(int argc, char *argv[])
bindtextdomain(PACKAGE, LOCALEDIR);
textdomain(PACKAGE);
- while ((ch = getopt(argc, argv, "")) != EOF)
+ while ((ch = getopt(argc, argv, "")) != -1)
switch(ch) {
case '?':
default: