summaryrefslogtreecommitdiff
path: root/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
commitc1f141596eddc404e0cd360bcc98744cd4a2455c (patch)
treec118c799380e64c485c8915fdb57c5ffd3be121e /ares_getopt.c
parentff90f9dc2874ca6bd4a185354d382c8513d9f6f0 (diff)
downloadc-ares-c1f141596eddc404e0cd360bcc98744cd4a2455c.tar.gz
c-ares-c1f141596eddc404e0cd360bcc98744cd4a2455c.tar.bz2
c-ares-c1f141596eddc404e0cd360bcc98744cd4a2455c.zip
Fix name space pollution.
Diffstat (limited to 'ares_getopt.c')
-rw-r--r--ares_getopt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ares_getopt.c b/ares_getopt.c
index 59f3b88..b3cbb01 100644
--- a/ares_getopt.c
+++ b/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 */