mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 23:58:49 -05:00
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.
This commit is contained in:
parent
37d509f04f
commit
2cad095425
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user