summary refs log tree commit diff
path: root/resolv
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
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')
-rw-r--r--resolv/gethnamaddr.c9
-rw-r--r--resolv/nss_dns/dns-host.c5
2 files changed, 9 insertions, 5 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));
 }
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