From 08721544d1cdc1214848f38a810e65e2bfb564fa Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Fri, 13 Dec 2002 07:54:02 +0000 Subject: [PATCH] (getargs): Don't assume EOF == -1. --- src/getargs.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/getargs.c b/src/getargs.c index 182b9f3b..de468e55 100644 --- a/src/getargs.c +++ b/src/getargs.c @@ -1,4 +1,5 @@ -/* Parse command line arguments for bison. +/* Parse command line arguments for Bison. + Copyright (C) 1984, 1986, 1989, 1992, 2000, 2001, 2002 Free Software Foundation, Inc. @@ -320,7 +321,8 @@ getargs (int argc, char *argv[]) { int c; - while ((c = getopt_long (argc, argv, short_options, long_options, NULL)) != EOF) + while ((c = getopt_long (argc, argv, short_options, long_options, NULL)) + != -1) switch (c) { case 0: -- 2.50.0