summaryrefslogtreecommitdiff
path: root/resolv/gethnamaddr.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1999-07-18 16:05:57 +0000
committerUlrich Drepper <drepper@redhat.com>1999-07-18 16:05:57 +0000
commit30f22ab12d9b04b42bfcca4fe732a55a41a5f11f (patch)
treef8989180fbdeb0e5dda8834901f1f4589a4f6995 /resolv/gethnamaddr.c
parentbbacd44b2a17982104a007218d46f76132abbed0 (diff)
downloadglibc-30f22ab12d9b04b42bfcca4fe732a55a41a5f11f.tar.gz
Update.
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.
Diffstat (limited to 'resolv/gethnamaddr.c')
-rw-r--r--resolv/gethnamaddr.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/resolv/gethnamaddr.c b/resolv/gethnamaddr.c
index 4a85460983..4484b81ce7 100644
--- a/resolv/gethnamaddr.c
+++ b/resolv/gethnamaddr.c
@@ -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));
}