strlen: use size_t to receive the return
authorDaniel Stenberg <daniel@haxx.se>
Sat, 4 Jun 2011 18:14:38 +0000 (20:14 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Sat, 4 Jun 2011 18:14:38 +0000 (20:14 +0200)
ares_init.c
ares_options.c

index 38c37069fa9a5e31a42a37f3150c64c0ad647366..d80b9637fe2256fe0b2bb7437bd6ac5ea3adaf65 100644 (file)
@@ -673,7 +673,7 @@ static int get_iphlpapi_dns_info (char *ret_buf, size_t ret_size)
       for( ; pDNSAddr != NULL ; pDNSAddr = pDNSAddr->Next )
       {
         struct sockaddr *pGenericAddr = pDNSAddr->Address.lpSockaddr;
-        int stringlen = 0;
+        size_t stringlen = 0;
 
         if( pGenericAddr->sa_family == AF_INET && left > ipv4_size )
         {
index 3979efee8c217088e5e0f992d47c3012ab694f09..5174ef26e4cfe7d18aba07debf9dbfa2c82cd34e 100644 (file)
@@ -1,6 +1,6 @@
 
 /* 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
  * 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,
                          const char* _csv)
 {
-  int i;
+  size_t i;
   char* csv = NULL;
   char* ptr;
   char* start_host;