getopt returns -1 not EOF at the end of args. Compare against that.
This commit is contained in:
parent
e192817f2b
commit
4f3f3e20ae
@ -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++;
|
||||
|
Loading…
Reference in New Issue
Block a user