aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGunter Knauf <gk@gknw.de>2009-08-06 11:10:30 +0000
committerGunter Knauf <gk@gknw.de>2009-08-06 11:10:30 +0000
commit2cad095425e348c5115a1f747b9121742dea5474 (patch)
treef75243be0e1268c3aaf6a10a5850d539532b2a0e
parent37d509f04fc9d54beb3185b866b8fe40a6af6cfb (diff)
cast to fix 64bit build warnings. From manpage:
POSIX.1-2001. Note that RFC 2553 defines a prototype where the last parameter cnt is of type size_t. Many systems follow RFC 2553. Glibc 2.0 and 2.1 have size_t, but 2.2 has socklen_t.
-rw-r--r--lib/inet_ntop.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/inet_ntop.h b/lib/inet_ntop.h
index 1bfc82b65..360ef3ae7 100644
--- a/lib/inet_ntop.h
+++ b/lib/inet_ntop.h
@@ -31,7 +31,7 @@ char *Curl_inet_ntop(int af, const void *addr, char *buf, size_t size);
#ifdef HAVE_ARPA_INET_H
#include <arpa/inet.h>
#endif
-#define Curl_inet_ntop(af,addr,buf,size) inet_ntop(af,addr,buf,size)
+#define Curl_inet_ntop(af,addr,buf,size) inet_ntop(af,addr,buf,(size_t)size)
#endif
#endif /* __INET_NTOP_H */