diff options
author | ume <ume@FreeBSD.org> | 2005-05-13 16:31:11 +0000 |
---|---|---|
committer | ume <ume@FreeBSD.org> | 2005-05-13 16:31:11 +0000 |
commit | e33ba033454acbec171e04edba1395842e412b5c (patch) | |
tree | 9ae1266a1a3de18e5409202ab088ec8928d3410e /usr.sbin/rip6query | |
parent | 4c5083a81ce14f96f4193b746c54f7e17d94e21b (diff) | |
download | FreeBSD-src-e33ba033454acbec171e04edba1395842e412b5c.zip FreeBSD-src-e33ba033454acbec171e04edba1395842e412b5c.tar.gz |
NI_WITHSCOPEID cleanup. Neither RFC 2553 nor RFC 3493 defines
NI_WITHSCOPEID, and our getaddrinfo(3) does nothing special
for it, now.
Diffstat (limited to 'usr.sbin/rip6query')
-rw-r--r-- | usr.sbin/rip6query/rip6query.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/usr.sbin/rip6query/rip6query.c b/usr.sbin/rip6query/rip6query.c index 90d65aa..b37772b 100644 --- a/usr.sbin/rip6query/rip6query.c +++ b/usr.sbin/rip6query/rip6query.c @@ -56,11 +56,6 @@ #include "route6d.h" -/* wrapper for KAME-special getnameinfo() */ -#ifndef NI_WITHSCOPEID -#define NI_WITHSCOPEID 0 -#endif - int s; struct sockaddr_in6 sin6; struct rip6 *ripbuf; @@ -192,7 +187,7 @@ sa_n2a(sa) static char buf[NI_MAXHOST]; if (getnameinfo(sa, sa->sa_len, buf, sizeof(buf), - NULL, 0, NI_NUMERICHOST | NI_WITHSCOPEID) != 0) { + NULL, 0, NI_NUMERICHOST) != 0) { snprintf(buf, sizeof(buf), "%s", "(invalid)"); } return buf; |