mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-28 04:43:32 +00:00
Do not print herror message, if w -n gethostname failed to be 100%
compatible with any program Suggested by: peter
This commit is contained in:
parent
276ea05394
commit
c54481c15a
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=16455
@ -331,8 +331,7 @@ main(argc, argv)
|
||||
|
||||
memmove(&in, hp->h_addr, sizeof(in));
|
||||
p = inet_ntoa(in);
|
||||
} else
|
||||
herror("gethostbyname");
|
||||
}
|
||||
}
|
||||
if (x) {
|
||||
(void)snprintf(buf, sizeof(buf), "%s:%.*s", p,
|
||||
|
Loading…
Reference in New Issue
Block a user