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

This commit is contained in:
Warner Losh 2003-08-07 04:40:54 +00:00
parent ccce0204dc
commit 12a524f9aa
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=118576

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++;