summaryrefslogtreecommitdiff
path: root/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
commitb47af62e75e5c55c48b717108796085a0b666293 (patch)
tree50dcd3727992f3bc7b3e3d85cc895bddffde8b97 /ares_getopt.c
parentc4ee4a5d21e7d38e18fdc565cbdf9b1aa082e19e (diff)
downloadc-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
Diffstat (limited to 'ares_getopt.c')
-rw-r--r--ares_getopt.c6
1 files changed, 3 insertions, 3 deletions
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)'?'