From 81238cab99ecdbf0511ff56871ab51f8f011346b Mon Sep 17 00:00:00 2001 From: imp Date: Thu, 7 Aug 2003 04:40:54 +0000 Subject: getopt returns -1 not EOF at the end of args. Compare against that. --- share/examples/ppi/ppilcd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'share/examples/ppi') 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++; -- cgit v1.1