diff options
| author | Hajimu UMEMOTO <ume@FreeBSD.org> | 2005-05-13 16:31:11 +0000 |
|---|---|---|
| committer | Hajimu UMEMOTO <ume@FreeBSD.org> | 2005-05-13 16:31:11 +0000 |
| commit | 4f101318489d72d2eeada2463a8fc3d105855628 (patch) | |
| tree | 9ae1266a1a3de18e5409202ab088ec8928d3410e /lib/libutil/logwtmp.c | |
| parent | 8dcb56dc7885d7310299a09a04fb5334f8d75d7a (diff) | |
Notes
Diffstat (limited to 'lib/libutil/logwtmp.c')
| -rw-r--r-- | lib/libutil/logwtmp.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/lib/libutil/logwtmp.c b/lib/libutil/logwtmp.c index 03ee4cf06dea..42f3599f9fef 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 <unistd.h> #include <utmp.h> -/* 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"; |
