]> cloudbase.mooo.com Git - z180-stamp.git/blobdiff - avr/getopt-min.c
include cleanup
[z180-stamp.git] / avr / getopt-min.c
index 778258d52b9f9790e7d34dc33a45415e7527423c..8e5dd6c3e026070ec3270808eea1ea71d7b4e02b 100644 (file)
@@ -1,5 +1,4 @@
 #include "common.h"
-#include <avr/pgmspace.h>
 
 
 /*
@@ -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 */