From 3d7f4c0d77e31b8b9cfcb0d1022d2cb3ddb38537 Mon Sep 17 00:00:00 2001
From: Daniel Stenberg <daniel@haxx.se>
Date: Wed, 4 Feb 2004 07:50:51 +0000
Subject: [PATCH] try_config() takes a second parameter as const, to prevent
 picky compiler warnings

---
 ares/ares_init.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/ares/ares_init.c b/ares/ares_init.c
index b841fc7006..58d510c44b 100644
--- a/ares/ares_init.c
+++ b/ares/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;
 
-- 
GitLab