diff options
author | Yang Tse <yangsita@gmail.com> | 2009-11-16 20:02:12 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2009-11-16 20:02:12 +0000 |
commit | b47af62e75e5c55c48b717108796085a0b666293 (patch) | |
tree | 50dcd3727992f3bc7b3e3d85cc895bddffde8b97 | |
parent | c4ee4a5d21e7d38e18fdc565cbdf9b1aa082e19e (diff) | |
download | c-ares-b47af62e75e5c55c48b717108796085a0b666293.tar.gz c-ares-b47af62e75e5c55c48b717108796085a0b666293.tar.bz2 c-ares-b47af62e75e5c55c48b717108796085a0b666293.zip |
Fix icc 9.0 compiler warning: external definition with no prior declaration
-rw-r--r-- | adig.c | 3 | ||||
-rw-r--r-- | ares_getopt.c | 6 |
2 files changed, 5 insertions, 4 deletions
@@ -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_getopt.c b/ares_getopt.c index 177b26f..59f3b88 100644 --- a/ares_getopt.c +++ b/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)'?' |