summary refs log tree commit diff
path: root/resolv/nss_dns/dns-host.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/nss_dns/dns-host.c
parentbbacd44b2a17982104a007218d46f76132abbed0 (diff)
downloadglibc-30f22ab12d9b04b42bfcca4fe732a55a41a5f11f.tar.gz
glibc-30f22ab12d9b04b42bfcca4fe732a55a41a5f11f.tar.xz
glibc-30f22ab12d9b04b42bfcca4fe732a55a41a5f11f.zip
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/nss_dns/dns-host.c')
-rw-r--r--resolv/nss_dns/dns-host.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/resolv/nss_dns/dns-host.c b/resolv/nss_dns/dns-host.c
index 16146ed4e0..1df7c23beb 100644
--- a/resolv/nss_dns/dns-host.c
+++ b/resolv/nss_dns/dns-host.c
@@ -191,7 +191,7 @@ _nss_dns_gethostbyname_r (const char *name, struct hostent *result,
 
 
 enum nss_status
-_nss_dns_gethostbyaddr_r (const char *addr, int len, int af,
+_nss_dns_gethostbyaddr_r (const char *addr, size_t len, int af,
 			  struct hostent *result, char *buffer, size_t buflen,
 			  int *errnop, int *h_errnop)
 {
@@ -207,7 +207,8 @@ _nss_dns_gethostbyaddr_r (const char *addr, int len, int af,
   } *host_data = (struct host_data *) buffer;
   querybuf host_buffer;
   char qbuf[MAXDNAME+1], *qp;
-  int size, n, status;
+  size_t size;
+  int n, status;
 
   if (af == AF_INET6 && len == IN6ADDRSZ &&
       (memcmp (uaddr, mapped, sizeof mapped) == 0