X-Git-Url: http://cloudbase.mooo.com/gitweb/z180-stamp.git/blobdiff_plain/41d36f28612cb6c49cf0260236f3b834549883be..889202c46ced1be4fc0db3faf63564722eba2865:/avr/getopt-min.c diff --git a/avr/getopt-min.c b/avr/getopt-min.c index 778258d..8e5dd6c 100644 --- a/avr/getopt-min.c +++ b/avr/getopt-min.c @@ -1,5 +1,4 @@ #include "common.h" -#include /* @@ -39,7 +38,7 @@ getopt( /* returns letter, '?', EOF */ || argv[optind][0] != '-' /* no more options */ || argv[optind][1] == '\0' /* not option; stdin */ ) - return EOF; + return -1; } c = argv[optind][sp]; /* option letter */