diff options
author | Daniel Stenberg <daniel@haxx.se> | 2004-02-23 08:04:31 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2004-02-23 08:04:31 +0000 |
commit | a58afac1f1ea74c4f234f944f5a6f259ef73ffa5 (patch) | |
tree | e879a422a3812964bb939625981f66ae7d4cd06f /ares_search.c | |
parent | d0d3f7ff6c33fdf71b6320c493ada7e0d60a590c (diff) | |
download | c-ares-a58afac1f1ea74c4f234f944f5a6f259ef73ffa5.tar.gz c-ares-a58afac1f1ea74c4f234f944f5a6f259ef73ffa5.tar.bz2 c-ares-a58afac1f1ea74c4f234f944f5a6f259ef73ffa5.zip |
more int vs long/size_t fixes after icc compiler warnings
Diffstat (limited to 'ares_search.c')
-rw-r--r-- | ares_search.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ares_search.c b/ares_search.c index a994669..dab4236 100644 --- a/ares_search.c +++ b/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; |