summaryrefslogtreecommitdiffstats
path: root/usr.bin/chflags/chflags.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/chflags/chflags.c')
-rw-r--r--usr.bin/chflags/chflags.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/chflags/chflags.c b/usr.bin/chflags/chflags.c
index 7cca3eb..f33f46e 100644
--- a/usr.bin/chflags/chflags.c
+++ b/usr.bin/chflags/chflags.c
@@ -68,7 +68,7 @@ main(argc, argv)
char *flags, *ep;
Hflag = Lflag = Pflag = Rflag = 0;
- while ((ch = getopt(argc, argv, "HLPR")) != EOF)
+ while ((ch = getopt(argc, argv, "HLPR")) != -1)
switch (ch) {
case 'H':
Hflag = 1;
OpenPOWER on IntegriCloud