summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--usr.bin/deroff/deroff.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.bin/deroff/deroff.c b/usr.bin/deroff/deroff.c
index 6b50bc14f28..0f80d110b0a 100644
--- a/usr.bin/deroff/deroff.c
+++ b/usr.bin/deroff/deroff.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: deroff.c,v 1.9 2014/12/03 16:44:55 millert Exp $ */
+/* $OpenBSD: deroff.c,v 1.10 2015/02/09 11:35:41 tedu Exp $ */
/*-
* Copyright (c) 1988, 1993
@@ -300,11 +300,11 @@ main(int ac, char **av)
disp = YES;
break;
default:
- errflg++;
+ errflg = 1;
break;
}
- if (errflg == 0 && optarg[1] != '\0')
- errflg++;
+ if (optarg[1] != '\0')
+ errflg = 1;
break;
case 'p':
parag = YES;
@@ -314,7 +314,7 @@ main(int ac, char **av)
kflag = YES;
break;
default:
- errflg++;
+ errflg = 1;
}
}
argc = ac - optind;