diff options
author | imp <imp@FreeBSD.org> | 2003-08-07 04:40:54 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2003-08-07 04:40:54 +0000 |
commit | 81238cab99ecdbf0511ff56871ab51f8f011346b (patch) | |
tree | 611872c24f69e0484f7ec505facb41dd0c9890d7 /share | |
parent | 10c0c1f1976d5a6b5940b3a90301e47b8de06f0a (diff) | |
download | FreeBSD-src-81238cab99ecdbf0511ff56871ab51f8f011346b.zip FreeBSD-src-81238cab99ecdbf0511ff56871ab51f8f011346b.tar.gz |
getopt returns -1 not EOF at the end of args. Compare against that.
Diffstat (limited to 'share')
-rw-r--r-- | share/examples/ppi/ppilcd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/share/examples/ppi/ppilcd.c b/share/examples/ppi/ppilcd.c index 4247910..f586677 100644 --- a/share/examples/ppi/ppilcd.c +++ b/share/examples/ppi/ppilcd.c @@ -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++; |