diff options
author | Daniel Stenberg <daniel@haxx.se> | 2002-01-17 08:03:48 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2002-01-17 08:03:48 +0000 |
commit | edcbf4350ba7f839fa8fa8460f441558d2976820 (patch) | |
tree | 29a2414035a5dba7a4f9ab4740adbb3e64ed3883 /lib | |
parent | 9289ea471f036049a7b6e8e87f4f4f2d8e8638e3 (diff) |
include our own sprintf() prototype to make it return sensible data on
all platforms, I also edited a few data types slightly to prevent my
compiler from warning on comparisions between signed and unsigned values
Diffstat (limited to 'lib')
-rw-r--r-- | lib/hostip.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/hostip.c b/lib/hostip.c index 42eebfe52..6d79acb3b 100644 --- a/lib/hostip.c +++ b/lib/hostip.c @@ -60,6 +60,9 @@ #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 @@ -121,7 +124,7 @@ static int _num_chars(int i) /* 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; @@ -162,7 +165,7 @@ Curl_addrinfo *Curl_resolv(struct SessionHandle *data, { 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 |