From e33ba033454acbec171e04edba1395842e412b5c Mon Sep 17 00:00:00 2001 From: ume Date: Fri, 13 May 2005 16:31:11 +0000 Subject: NI_WITHSCOPEID cleanup. Neither RFC 2553 nor RFC 3493 defines NI_WITHSCOPEID, and our getaddrinfo(3) does nothing special for it, now. --- lib/libutil/logwtmp.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'lib/libutil/logwtmp.c') diff --git a/lib/libutil/logwtmp.c b/lib/libutil/logwtmp.c index 03ee4cf..42f3599 100644 --- a/lib/libutil/logwtmp.c +++ b/lib/libutil/logwtmp.c @@ -54,11 +54,6 @@ static char sccsid[] = "@(#)logwtmp.c 8.1 (Berkeley) 6/4/93"; #include #include -/* wrapper for KAME-special getnameinfo() */ -#ifndef NI_WITHSCOPEID -#define NI_WITHSCOPEID 0 -#endif - void logwtmp(const char *line, const char *name, const char *host) @@ -86,7 +81,7 @@ logwtmp(const char *line, const char *name, const char *host) else { error = getnameinfo(res->ai_addr, res->ai_addrlen, fullhost, strlen(fullhost), NULL, 0, - NI_NUMERICHOST|NI_WITHSCOPEID); + NI_NUMERICHOST); if (error != 0) { fprintf(stderr, "%d", error); host = "invalid hostname"; -- cgit v1.1