diff options
author | Christopher Faylor <me@cgf.cx> | 2003-09-16 07:39:55 +0400 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2003-09-16 07:39:55 +0400 |
commit | 2bfdb22e236bbf11f46b974ef7c00af44a640fd9 (patch) | |
tree | 7fb8e427c4d5b762b60e8a71dc76b373b68c44ad /winsup/cygwin/libc | |
parent | 8ec37f21680447bf30b37a0e2d7338162f9ca60e (diff) |
* getopt.cc (opterr): Reinstate initialization.
(optind): Ditto.
(optopt): Ditto.
* pinfo.cc: Include cygheap.h or suffer compile error.
* shared.h: Reset magic number.
Diffstat (limited to 'winsup/cygwin/libc')
-rw-r--r-- | winsup/cygwin/libc/getopt.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/winsup/cygwin/libc/getopt.c b/winsup/cygwin/libc/getopt.c index 5d97945fa..90a202601 100644 --- a/winsup/cygwin/libc/getopt.c +++ b/winsup/cygwin/libc/getopt.c @@ -53,9 +53,9 @@ #ifdef __weak_alias __weak_alias(getopt,_getopt) #endif -int __declspec(dllexport) opterr; /* if error message should be printed */ -int __declspec(dllexport) optind; /* index into parent argv vector */ -int __declspec(dllexport) optopt; /* character checked for validity */ +int __declspec(dllexport) opterr = 1; /* if error message should be printed */ +int __declspec(dllexport) optind = 1; /* index into parent argv vector */ +int __declspec(dllexport) optopt = '?'; /* character checked for validity */ int __declspec(dllexport) optreset; /* reset getopt */ char __declspec(dllexport) *optarg; /* argument associated with option */ #endif |