getopt returns -1 not EOF at the end of args. Compare against that.

This commit is contained in:
imp 2003-08-07 04:40:54 +00:00
parent e192817f2b
commit 4f3f3e20ae

View File

@ -107,7 +107,7 @@ main(int argc, char *argv[])
drivertype = getenv("LCD_TYPE");
while ((ch = getopt(argc, argv, "Dd:f:o:v")) != EOF) {
while ((ch = getopt(argc, argv, "Dd:f:o:v")) != -1) {
switch(ch) {
case 'D':
debuglevel++;