about summary refs log tree commit diff
path: root/resolv/gethnamaddr.c
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/gethnamaddr.c
parent8bedcb5f03c62bf6001396dafdd82fbd4da7c2db (diff)
downloadglibc-1c6e6f2315b343cbac94c2dd798a6ebb80489a12.tar.gz
glibc-1c6e6f2315b343cbac94c2dd798a6ebb80489a12.tar.xz
glibc-1c6e6f2315b343cbac94c2dd798a6ebb80489a12.zip
Remove some references to bcopy/bcmp/bzero.
Diffstat (limited to 'resolv/gethnamaddr.c')
-rw-r--r--resolv/gethnamaddr.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/resolv/gethnamaddr.c b/resolv/gethnamaddr.c
index 49cdc724e1..a861a847ce 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);