1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-12-24 17:51:17 +03:00
1999-07-18  Andreas Jaeger  <aj@arthur.rhein-neckar.de>

	* nscd/nscd_proto.h (__nscd_gethostbyaddr_r): Follow change from
	1999-07-17 and adjust len parameter.
	* nscd/nscd_gethst_r.c (__nscd_gethostbyaddr_r): Likewise.
	* nscd/gethstbyad_r.c (ADD_PARAMS): Likewise.
	* manual/socket.texi (Host Names): Likewise.
	* nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyaddr_r): Likewise.
	* nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_gethostbyaddr_r):
	Likewise.
	* resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Likewise.
	* resolv/gethnamaddr.c (gethostbyaddr): Likewise.
	(ht_gethostbyaddr): Likewise.
	(_gethtbyaddr): Likewise.
This commit is contained in:
Ulrich Drepper
1999-07-18 16:05:57 +00:00
parent bbacd44b2a
commit 30f22ab12d
9 changed files with 35 additions and 16 deletions

View File

@@ -621,7 +621,8 @@ gethostbyname2(name, af)
struct hostent *
gethostbyaddr(addr, len, af)
const char *addr; /* XXX should have been def'd as u_char! */
int len, af;
size_t len;
int af;
{
const u_char *uaddr = (const u_char *)addr;
static const u_char mapped[] = { 0,0, 0,0, 0,0, 0,0, 0,0, 0xff,0xff };
@@ -869,7 +870,8 @@ _gethtbyname2(name, af)
struct hostent *
_gethtbyaddr(addr, len, af)
const char *addr;
int len, af;
size_t len;
int af;
{
register struct hostent *p;
@@ -1000,7 +1002,8 @@ ht_gethostbyname(name)
struct hostent *
ht_gethostbyaddr(addr, len, af)
const char *addr;
int len, af;
size_t len;
int af;
{
return (_gethtbyaddr(addr, len, af));
}