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:
Andrey A. Chernov 1996-06-17 20:07:44 +00:00
parent 276ea05394
commit c54481c15a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=16455

View File

@ -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,