summaryrefslogtreecommitdiffstats
path: root/login-utils/login.c
diff options
context:
space:
mode:
Diffstat (limited to 'login-utils/login.c')
-rw-r--r--login-utils/login.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/login-utils/login.c b/login-utils/login.c
index c38abe442..048316bcc 100644
--- a/login-utils/login.c
+++ b/login-utils/login.c
@@ -390,7 +390,7 @@ main(int argc, char **argv)
fflag = hflag = pflag = 0;
passwd_req = 1;
- while ((ch = getopt(argc, argv, "fh:p")) != EOF)
+ while ((ch = getopt(argc, argv, "fh:p")) != -1)
switch (ch) {
case 'f':
fflag = 1;