From 4e468ed2eb86a2406e14f1eca82072ee501d05fd Mon Sep 17 00:00:00 2001 From: The Android Open Source Project Date: Wed, 17 Dec 2008 18:03:48 -0800 Subject: Code drop from //branches/cupcake/...@124589 --- libc/netbsd/net/getnameinfo.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'libc/netbsd') diff --git a/libc/netbsd/net/getnameinfo.c b/libc/netbsd/net/getnameinfo.c index 5effa63..db04fbf 100644 --- a/libc/netbsd/net/getnameinfo.c +++ b/libc/netbsd/net/getnameinfo.c @@ -335,9 +335,9 @@ ip6_parsenumeric(sa, addr, host, hostlen, flags) size_t numaddrlen; char numaddr[512]; - _DIAGASSERT(sa != NULL); - _DIAGASSERT(addr != NULL); - _DIAGASSERT(host != NULL); + assert(sa != NULL); + assert(addr != NULL); + assert(host != NULL); if (inet_ntop(AF_INET6, addr, numaddr, sizeof(numaddr)) == NULL) return EAI_SYSTEM; @@ -380,8 +380,8 @@ ip6_sa2str(sa6, buf, bufsiz, flags) const struct in6_addr *a6; int n; - _DIAGASSERT(sa6 != NULL); - _DIAGASSERT(buf != NULL); + assert(sa6 != NULL); + assert(buf != NULL); ifindex = (unsigned int)sa6->sin6_scope_id; a6 = &sa6->sin6_addr; -- cgit v1.1