strlen: use size_t to receive the return

pull/6/head
Daniel Stenberg 14 years ago
parent 45ec020795
commit 3cb1afe054
  1. 2
      ares_init.c
  2. 4
      ares_options.c

@ -673,7 +673,7 @@ static int get_iphlpapi_dns_info (char *ret_buf, size_t ret_size)
for( ; pDNSAddr != NULL ; pDNSAddr = pDNSAddr->Next ) for( ; pDNSAddr != NULL ; pDNSAddr = pDNSAddr->Next )
{ {
struct sockaddr *pGenericAddr = pDNSAddr->Address.lpSockaddr; struct sockaddr *pGenericAddr = pDNSAddr->Address.lpSockaddr;
int stringlen = 0; size_t stringlen = 0;
if( pGenericAddr->sa_family == AF_INET && left > ipv4_size ) if( pGenericAddr->sa_family == AF_INET && left > ipv4_size )
{ {

@ -1,6 +1,6 @@
/* Copyright 1998 by the Massachusetts Institute of Technology. /* Copyright 1998 by the Massachusetts Institute of Technology.
* Copyright (C) 2008-2010 by Daniel Stenberg * Copyright (C) 2008-2011 by Daniel Stenberg
* *
* Permission to use, copy, modify, and distribute this * Permission to use, copy, modify, and distribute this
* software and its documentation for any purpose and without * software and its documentation for any purpose and without
@ -135,7 +135,7 @@ int ares_set_servers(ares_channel channel,
int ares_set_servers_csv(ares_channel channel, int ares_set_servers_csv(ares_channel channel,
const char* _csv) const char* _csv)
{ {
int i; size_t i;
char* csv = NULL; char* csv = NULL;
char* ptr; char* ptr;
char* start_host; char* start_host;

Loading…
Cancel
Save