scripts: remove EOF == -1 assumption

* scripts/xsparse.c (main): Don’t assume EOF == -1.
This commit is contained in:
Paul Eggert
2026-08-21 11:46:59 -07:00
parent 1b3dcd545f
commit b9cdce5e2c
+1 -1
View File
@@ -352,7 +352,7 @@ main (int argc, char **argv)
char *xheader_file = NULL;
progname = argv[0];
while ((c = getopt (argc, argv, "hnvx:")) != EOF)
while (0 <= (c = getopt (argc, argv, "hnvx:")))
{
switch (c)
{