diff options
author | Roland McGrath <roland@hack.frob.com> | 2015-01-13 11:12:55 -0800 |
---|---|---|
committer | Roland McGrath <roland@hack.frob.com> | 2015-01-13 11:12:55 -0800 |
commit | 1c6e6f2315b343cbac94c2dd798a6ebb80489a12 (patch) | |
tree | 851756d9425469dfce159d7bb1a30bee0283816d /resolv/gethnamaddr.c | |
parent | 8bedcb5f03c62bf6001396dafdd82fbd4da7c2db (diff) | |
download | glibc-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.c | 6 |
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); |