diff options
-rw-r--r-- | ares/adig.c | 3 | ||||
-rw-r--r-- | ares/ares_getopt.c | 6 |
2 files changed, 5 insertions, 4 deletions
diff --git a/ares/adig.c b/ares/adig.c index 2a0b43c5c..e796a2c0d 100644 --- a/ares/adig.c +++ b/ares/adig.c @@ -157,7 +157,6 @@ static const char *opcodes[] = { "UPDATEA", "UPDATED", "UPDATEDA", "UPDATEM", "UPDATEMA", "ZONEINIT", "ZONEREF" }; - struct in_addr inaddr; static const char *rcodes[] = { "NOERROR", "FORMERR", "SERVFAIL", "NXDOMAIN", "NOTIMP", "REFUSED", @@ -165,6 +164,8 @@ static const char *rcodes[] = { "(unknown)", "(unknown)", "(unknown)", "(unknown)", "NOCHANGE" }; +static struct in_addr inaddr; + static void callback(void *arg, int status, int timeouts, unsigned char *abuf, int alen); static const unsigned char *display_question(const unsigned char *aptr, 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)'?' |