aboutsummaryrefslogtreecommitdiff
path: root/resolv
diff options
context:
space:
mode:
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