diff options
author | ume <ume@FreeBSD.org> | 2005-05-13 16:43:28 +0000 |
---|---|---|
committer | ume <ume@FreeBSD.org> | 2005-05-13 16:43:28 +0000 |
commit | 7ef908f6aafd522979d4950ea468ff9d9c6e3c0a (patch) | |
tree | 055e2b0d0d4a15cd0d24a6401883a8681ce756b9 /usr.sbin/lpr/lpd | |
parent | e33ba033454acbec171e04edba1395842e412b5c (diff) | |
download | FreeBSD-src-7ef908f6aafd522979d4950ea468ff9d9c6e3c0a.zip FreeBSD-src-7ef908f6aafd522979d4950ea468ff9d9c6e3c0a.tar.gz |
NI_WITHSCOPEID cleanup
Reviewed by: gad
Diffstat (limited to 'usr.sbin/lpr/lpd')
-rw-r--r-- | usr.sbin/lpr/lpd/lpd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/lpr/lpd/lpd.c b/usr.sbin/lpr/lpd/lpd.c index e02839a..51a228b 100644 --- a/usr.sbin/lpr/lpd/lpd.c +++ b/usr.sbin/lpr/lpd/lpd.c @@ -675,7 +675,7 @@ chkhost(struct sockaddr *f, int ch_opts) if (error) { errsav = error; error = getnameinfo(f, f->sa_len, hostbuf, sizeof(hostbuf), - NULL, 0, NI_NUMERICHOST | NI_WITHSCOPEID); + NULL, 0, NI_NUMERICHOST); if (error) { asprintf(&syserr, "can not determine hostname for remote host (%d,%d)", @@ -701,7 +701,7 @@ chkhost(struct sockaddr *f, int ch_opts) /* Need address in stringform for comparison (no DNS lookup here) */ error = getnameinfo(f, f->sa_len, hostbuf, sizeof(hostbuf), NULL, 0, - NI_NUMERICHOST | NI_WITHSCOPEID); + NI_NUMERICHOST); if (error) { asprintf(&syserr, "Cannot print IP address (error %d)", error); @@ -743,7 +743,7 @@ chkhost(struct sockaddr *f, int ch_opts) good = 0; for (r = res; good == 0 && r; r = r->ai_next) { error = getnameinfo(r->ai_addr, r->ai_addrlen, ip, sizeof(ip), - NULL, 0, NI_NUMERICHOST | NI_WITHSCOPEID); + NULL, 0, NI_NUMERICHOST); if (!error && !strcmp(from_ip, ip)) good = 1; } |