summaryrefslogtreecommitdiffstats
path: root/usr.bin/mklocale
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2006-03-12 00:29:34 +0000
committerderaadt <deraadt@openbsd.org>2006-03-12 00:29:34 +0000
commit96c0adf241a82064daae57dcb5e1cd3fe47e8840 (patch)
tree52588676eef066e141f4faf39eda53d9b8abf26b /usr.bin/mklocale
parentmight as well make ksh_getopt() match real getopt(), ie. get rid of that (diff)
downloadwireguard-openbsd-96c0adf241a82064daae57dcb5e1cd3fe47e8840.tar.xz
wireguard-openbsd-96c0adf241a82064daae57dcb5e1cd3fe47e8840.zip
more getopt() EOF crud; adobriyan@gmail
Diffstat (limited to 'usr.bin/mklocale')
-rw-r--r--usr.bin/mklocale/yacc.y2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/mklocale/yacc.y b/usr.bin/mklocale/yacc.y
index 36cf0fc25b5..e3c81d70c5e 100644
--- a/usr.bin/mklocale/yacc.y
+++ b/usr.bin/mklocale/yacc.y
@@ -245,7 +245,7 @@ main(int ac, char *av[])
extern char *optarg;
extern int optind;
- while ((x = getopt(ac, av, "do:")) != EOF) {
+ while ((x = getopt(ac, av, "do:")) != -1) {
switch(x) {
case 'd':
debug = 1;