all platforms, I also edited a few data types slightly to prevent my
compiler from warning on comparisions between signed and unsigned values
#include "hostip.h"
#include "hash.h"
+#define _MPRINTF_REPLACE /* use our functions only */
+#include <curl/mprintf.h>
+
#if defined(HAVE_INET_NTOA_R) && !defined(HAVE_INET_NTOA_R_DECL)
#include "inet_ntoa_r.h"
#endif
/* Create a hostcache id */
static char *
-_create_hostcache_id(char *server, int port, size_t *entry_len)
+_create_hostcache_id(char *server, int port, ssize_t *entry_len)
{
char *id = NULL;
{
char *entry_id = NULL;
struct curl_dns_cache_entry *p = NULL;
- size_t entry_len;
+ ssize_t entry_len;
time_t now;
/* If the host cache timeout is 0, we don't do DNS cach'ing