aboutsummaryrefslogtreecommitdiff
path: root/resolv
diff options
context:
space:
mode:
authorRoland McGrath <roland@hack.frob.com>2015-01-13 11:12:55 -0800
committerRoland McGrath <roland@hack.frob.com>2015-01-13 11:12:55 -0800
commit1c6e6f2315b343cbac94c2dd798a6ebb80489a12 (patch)
tree851756d9425469dfce159d7bb1a30bee0283816d /resolv
parent8bedcb5f03c62bf6001396dafdd82fbd4da7c2db (diff)
downloadglibc-1c6e6f2315b343cbac94c2dd798a6ebb80489a12.zip
glibc-1c6e6f2315b343cbac94c2dd798a6ebb80489a12.tar.gz
glibc-1c6e6f2315b343cbac94c2dd798a6ebb80489a12.tar.bz2
Remove some references to bcopy/bcmp/bzero.
Diffstat (limited to 'resolv')
-rw-r--r--resolv/gethnamaddr.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/resolv/gethnamaddr.c b/resolv/gethnamaddr.c
index 49cdc72..a861a84 100644
--- a/resolv/gethnamaddr.c
+++ b/resolv/gethnamaddr.c
@@ -672,8 +672,8 @@ gethostbyaddr(addr, len, af)
return (NULL);
}
if (af == AF_INET6 && len == IN6ADDRSZ &&
- (!bcmp(uaddr, mapped, sizeof mapped) ||
- !bcmp(uaddr, tunnelled, sizeof tunnelled))) {
+ (!memcmp(uaddr, mapped, sizeof mapped) ||
+ !memcmp(uaddr, tunnelled, sizeof tunnelled))) {
/* Unmap. */
addr += sizeof mapped;
uaddr += sizeof mapped;
@@ -922,7 +922,7 @@ _gethtbyaddr(addr, len, af)
_sethtent(0);
while ((p = _gethtent()))
- if (p->h_addrtype == af && !bcmp(p->h_addr, addr, len))
+ if (p->h_addrtype == af && !memcmp(p->h_addr, addr, len))
break;
_endhtent();
return (p);