getopt returns -1 not EOF at the end of args. Compare against that.
This commit is contained in:
parent
ccce0204dc
commit
12a524f9aa
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=118576
@ -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