summaryrefslogtreecommitdiff
path: root/ares_init.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-02-04 07:50:51 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-02-04 07:50:51 +0000
commitf05add885b6b64b1fa96934fd8aacc9dd4820ff5 (patch)
treef1dee75e452ce1020eec9bc3602785101bf223d3 /ares_init.c
parentf8ced532aec3f18b6c2a987554a44371833d101b (diff)
downloadc-ares-f05add885b6b64b1fa96934fd8aacc9dd4820ff5.tar.gz
c-ares-f05add885b6b64b1fa96934fd8aacc9dd4820ff5.tar.bz2
c-ares-f05add885b6b64b1fa96934fd8aacc9dd4820ff5.zip
try_config() takes a second parameter as const, to prevent picky compiler
warnings
Diffstat (limited to 'ares_init.c')
-rw-r--r--ares_init.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ares_init.c b/ares_init.c
index b841fc7..58d510c 100644
--- a/ares_init.c
+++ b/ares_init.c
@@ -49,7 +49,7 @@ static int config_sortlist(struct apattern **sortlist, int *nsort,
const char *str);
static int set_search(ares_channel channel, const char *str);
static int set_options(ares_channel channel, const char *str);
-static char *try_config(char *s, char *opt);
+static char *try_config(char *s, const char *opt);
static const char *try_option(const char *p, const char *q, const char *opt);
static int ip_addr(const char *s, int len, struct in_addr *addr);
static void natural_mask(struct apattern *pat);
@@ -716,7 +716,7 @@ static int set_options(ares_channel channel, const char *str)
return ARES_SUCCESS;
}
-static char *try_config(char *s, char *opt)
+static char *try_config(char *s, const char *opt)
{
int len;