diff --git a/headers/posix/arpa/inet.h b/headers/posix/arpa/inet.h index 03d843f83c..e16a55f225 100644 --- a/headers/posix/arpa/inet.h +++ b/headers/posix/arpa/inet.h @@ -97,7 +97,7 @@ char *inet_cidr_ntop(int, const void *, int, char *, size_t); int inet_cidr_pton(int, const char *, void *, int *); char *inet_ntoa(struct in_addr); int inet_pton(int, const char *, void *); -const char *inet_ntop(int, const void *, char *, size_t); +const char *inet_ntop(int, const void *, char *, socklen_t); u_int inet_nsap_addr(const char *, u_char *, int); char *inet_nsap_ntoa(int, const u_char *, char *); diff --git a/headers/posix/netdb.h b/headers/posix/netdb.h index b608d8305d..7dc778c77d 100644 --- a/headers/posix/netdb.h +++ b/headers/posix/netdb.h @@ -259,8 +259,8 @@ void setprotoent __P((int)); void setservent __P((int)); int getaddrinfo __P((const char *, const char *, const struct addrinfo *, struct addrinfo **)); -int getnameinfo __P((const struct sockaddr *, size_t, char *, - size_t, char *, size_t, int)); +int getnameinfo __P((const struct sockaddr *, socklen_t, char *, + socklen_t, char *, socklen_t, int)); void freeaddrinfo __P((struct addrinfo *)); const char *gai_strerror __P((int)); struct hostent *getipnodebyname __P((const char *, int, int, int *));