NI_WITHSCOPEID cleanup
This commit is contained in:
parent
9e752adbc2
commit
10cb8fdace
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=146468
@ -695,7 +695,7 @@ doit(struct sockaddr *who)
|
|||||||
if (!isdigit(remote_hostname[0]) && strlen(remote_hostname) > utmp_len)
|
if (!isdigit(remote_hostname[0]) && strlen(remote_hostname) > utmp_len)
|
||||||
err_ = getnameinfo(who, who->sa_len, remote_hostname,
|
err_ = getnameinfo(who, who->sa_len, remote_hostname,
|
||||||
sizeof(remote_hostname), NULL, 0,
|
sizeof(remote_hostname), NULL, 0,
|
||||||
NI_NUMERICHOST|NI_WITHSCOPEID);
|
NI_NUMERICHOST);
|
||||||
/* XXX: do 'err_' check */
|
/* XXX: do 'err_' check */
|
||||||
|
|
||||||
(void) gethostname(host_name, sizeof(host_name) - 1);
|
(void) gethostname(host_name, sizeof(host_name) - 1);
|
||||||
|
Loading…
Reference in New Issue
Block a user