aboutsummaryrefslogtreecommitdiff
path: root/ares/ares_getopt.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2009-11-16 20:02:12 +0000
committerYang Tse <yangsita@gmail.com>2009-11-16 20:02:12 +0000
commit09526fc9e9639707f18badb0d739eae9dc361d08 (patch)
tree1c9e213cd4869dd1ef173e9a8968a0b553d6a542 /ares/ares_getopt.c
parentf0068267ee032da213e57debca8cf5aa6ab67684 (diff)
Fix icc 9.0 compiler warning: external definition with no prior declaration
Diffstat (limited to 'ares/ares_getopt.c')
-rw-r--r--ares/ares_getopt.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ares/ares_getopt.c b/ares/ares_getopt.c
index 177b26fea..59f3b8834 100644
--- a/ares/ares_getopt.c
+++ b/ares/ares_getopt.c
@@ -50,9 +50,9 @@
#include "ares_getopt.h"
int opterr = 1, /* if error message should be printed */
- optind = 1, /* index into parent argv vector */
- optopt, /* character checked for validity */
- optreset; /* reset getopt */
+ optind = 1; /* index into parent argv vector */
+static int optopt; /* character checked for validity */
+static int optreset; /* reset getopt */
char *optarg; /* argument associated with option */
#define BADCH (int)'?'