aboutsummaryrefslogtreecommitdiff
path: root/ares/ares_getopt.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2009-11-22 03:41:26 +0000
committerYang Tse <yangsita@gmail.com>2009-11-22 03:41:26 +0000
commit738e547815c9a799fa12c63715be13b7046fc25a (patch)
tree218906fc3eb5a7146e74153cc7784bd250424a8c /ares/ares_getopt.c
parent5ec8a3ae0635f07628a9a2b5493a3d43abf629b3 (diff)
Fix name space pollution.
Diffstat (limited to 'ares/ares_getopt.c')
-rw-r--r--ares/ares_getopt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ares/ares_getopt.c b/ares/ares_getopt.c
index 59f3b8834..b3cbb012d 100644
--- a/ares/ares_getopt.c
+++ b/ares/ares_getopt.c
@@ -51,7 +51,7 @@
int opterr = 1, /* if error message should be printed */
optind = 1; /* index into parent argv vector */
-static int optopt; /* character checked for validity */
+int optopt = 0; /* character checked for validity */
static int optreset; /* reset getopt */
char *optarg; /* argument associated with option */