]> granicus.if.org Git - curl/commitdiff
fix cast for some systems which are broken due to absense of socklen_t, therefore...
authorGunter Knauf <gk@gknw.de>
Fri, 7 Aug 2009 23:32:38 +0000 (23:32 +0000)
committerGunter Knauf <gk@gknw.de>
Fri, 7 Aug 2009 23:32:38 +0000 (23:32 +0000)
lib/inet_ntop.h

index 3d9f1dc760af589b216bd66a5fccbe33852d8924..152bd7de8e54a16d4f6cf95fc40aeaa52ca97a2e 100644 (file)
@@ -31,7 +31,8 @@ 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,(socklen_t)size)
+#define Curl_inet_ntop(af,addr,buf,size) \
+        inet_ntop(af,addr,buf,(curl_socklen_t)size)
 #endif
 
 #endif /* __INET_NTOP_H */