Commit 09526fc9 authored by Yang Tse's avatar Yang Tse
Browse files

Fix icc 9.0 compiler warning: external definition with no prior declaration

parent f0068267
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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,
+3 −3
Original line number Diff line number Diff line
@@ -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)'?'