* net.cc (cygwin_inet_ntop): Change len argument to socklen_t to

follow SUSv3.
	* include/arpa/inet.h (inet_ntop): Ditto.
	* include/cygwin/in.h: Include cygwin/socket.h to get socklen_t.
This commit is contained in:
Corinna Vinschen
2005-09-17 08:55:30 +00:00
parent b3ecdcf438
commit 5da8b1281b
4 changed files with 11 additions and 3 deletions

View File

@ -27,7 +27,7 @@ in_addr_t inet_netof (struct in_addr);
in_addr_t inet_network (const char *);
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);
#endif
#ifdef __cplusplus