summaryrefslogtreecommitdiffstats
path: root/share/examples/ppi
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2003-08-07 04:40:54 +0000
committerimp <imp@FreeBSD.org>2003-08-07 04:40:54 +0000
commit81238cab99ecdbf0511ff56871ab51f8f011346b (patch)
tree611872c24f69e0484f7ec505facb41dd0c9890d7 /share/examples/ppi
parent10c0c1f1976d5a6b5940b3a90301e47b8de06f0a (diff)
downloadFreeBSD-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/examples/ppi')
-rw-r--r--share/examples/ppi/ppilcd.c2
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++;
OpenPOWER on IntegriCloud