diff options
author | ume <ume@FreeBSD.org> | 2006-05-12 15:37:23 +0000 |
---|---|---|
committer | ume <ume@FreeBSD.org> | 2006-05-12 15:37:23 +0000 |
commit | ab3eacdf3106cb0b4027a6d928d9555815af0b48 (patch) | |
tree | 164cb97bf2cd0fc04b8135b782152c0960ca3354 /lib/libc/net/netdb_private.h | |
parent | 08978d5bee9bfc81ae25a6b3a8971577532cc9aa (diff) | |
download | FreeBSD-src-ab3eacdf3106cb0b4027a6d928d9555815af0b48.zip FreeBSD-src-ab3eacdf3106cb0b4027a6d928d9555815af0b48.tar.gz |
Fix gethostbyaddr() prototype to conform to IEEE Std 1003.1:
http://www.opengroup.org/onlinepubs/009695399/functions/gethostbyaddr.html
gethostbyaddr_r() is changed as well.
It breaks ABI backward compatibility on 64 bit arch. So, we fix it
on 32 bit arch only for now.
Reported by: Rostislav Krasny <rosti.bsd@gmail.com>
Diffstat (limited to 'lib/libc/net/netdb_private.h')
-rw-r--r-- | lib/libc/net/netdb_private.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/net/netdb_private.h b/lib/libc/net/netdb_private.h index e5535f6..b48dd7b 100644 --- a/lib/libc/net/netdb_private.h +++ b/lib/libc/net/netdb_private.h @@ -133,7 +133,7 @@ void _endhostdnsent(void); void _endhosthtent(struct hostent_data *); void _endnetdnsent(void); void _endnethtent(struct netent_data *); -struct hostent *_gethostbynisaddr(const char *, int, int); +struct hostent *_gethostbynisaddr(const void *, socklen_t, int); struct hostent *_gethostbynisname(const char *, int); void _map_v4v6_address(const char *, char *); void _map_v4v6_hostent(struct hostent *, char **, char *); |