1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-21 23:58:49 -05:00

more int vs long/size_t fixes after icc compiler warnings

This commit is contained in:
Daniel Stenberg 2004-02-23 08:04:31 +00:00
parent 76241d0a02
commit ae76a67566

View File

@ -183,7 +183,8 @@ static void end_squery(struct search_query *squery, int status,
/* Concatenate two domains. */ /* Concatenate two domains. */
static int cat_domain(const char *name, const char *domain, char **s) 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); *s = malloc(nlen + 1 + dlen + 1);
if (!*s) 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) static int single_domain(ares_channel channel, const char *name, char **s)
{ {
int len = strlen(name); size_t len = strlen(name);
const char *hostaliases; const char *hostaliases;
FILE *fp; FILE *fp;
char *line = NULL; char *line = NULL;