diff options
Diffstat (limited to 'usr.sbin/mountd')
-rw-r--r-- | usr.sbin/mountd/mountd.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/usr.sbin/mountd/mountd.c b/usr.sbin/mountd/mountd.c index 54dfd69..bd57299 100644 --- a/usr.sbin/mountd/mountd.c +++ b/usr.sbin/mountd/mountd.c @@ -227,11 +227,6 @@ int got_sighup = 0; int opt_flags; static int have_v6 = 1; -#ifdef NI_WITHSCOPEID -static const int ninumeric = NI_NUMERICHOST | NI_WITHSCOPEID; -#else -static const int ninumeric = NI_NUMERICHOST; -#endif int mountdlockfd; /* Bits for opt_flags above */ @@ -1692,7 +1687,7 @@ get_host(cp, grp, tgrp) while (ai != NULL) { if (ai->ai_canonname == NULL) { if (getnameinfo(ai->ai_addr, ai->ai_addrlen, host, - sizeof host, NULL, 0, ninumeric) != 0) + sizeof host, NULL, 0, NI_NUMERICHOST) != 0) strlcpy(host, "?", sizeof(host)); ai->ai_canonname = strdup(host); ai->ai_flags |= AI_CANONNAME; @@ -2009,7 +2004,7 @@ get_net(cp, net, maskflg) if (np) { name = np->n_name; } else if (getnameinfo(sa, sa->sa_len, netname, sizeof netname, - NULL, 0, ninumeric) == 0) { + NULL, 0, NI_NUMERICHOST) == 0) { name = netname; } else { goto fail; |