From ae76a675660a48d462922ff5cb7e2001f6d4cff6 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Mon, 23 Feb 2004 08:04:31 +0000 Subject: [PATCH] more int vs long/size_t fixes after icc compiler warnings --- ares/ares_search.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ares/ares_search.c b/ares/ares_search.c index a994669fe..dab42368a 100644 --- a/ares/ares_search.c +++ b/ares/ares_search.c @@ -183,7 +183,8 @@ static void end_squery(struct search_query *squery, int status, /* Concatenate two domains. */ static int cat_domain(const char *name, const char *domain, char **s) { - int nlen = strlen(name), dlen = strlen(domain); + size_t nlen = strlen(name); + size_t dlen = strlen(domain); *s = malloc(nlen + 1 + dlen + 1); if (!*s) @@ -201,7 +202,7 @@ static int cat_domain(const char *name, const char *domain, char **s) */ static int single_domain(ares_channel channel, const char *name, char **s) { - int len = strlen(name); + size_t len = strlen(name); const char *hostaliases; FILE *fp; char *line = NULL;