summaryrefslogtreecommitdiffstats
path: root/src/util/windows/getopt.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/windows/getopt.c')
-rw-r--r--src/util/windows/getopt.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/util/windows/getopt.c b/src/util/windows/getopt.c
index ee38e72abe..081520f559 100644
--- a/src/util/windows/getopt.c
+++ b/src/util/windows/getopt.c
@@ -67,12 +67,12 @@ getopt(nargc, nargv, ostr)
optreset = 0;
if (optind >= nargc || *(place = nargv[optind]) != '-') {
place = EMSG;
- return(EOF);
+ return(-1);
}
if (place[1] && *++place == '-') { /* found "--" */
++optind;
place = EMSG;
- return(EOF);
+ return(-1);
}
} /* option letter okay? */
if ((optopt = (int)*place++) == (int)':' ||
@@ -82,7 +82,7 @@ getopt(nargc, nargv, ostr)
* assume it means EOF.
*/
if (optopt == (int)'-')
- return(EOF);
+ return(-1);
if (!*place)
++optind;
if (opterr && *ostr != ':') {