From c54481c15ac2e7c754dc8e601c68dc4f25ca965e Mon Sep 17 00:00:00 2001 From: "Andrey A. Chernov" Date: Mon, 17 Jun 1996 20:07:44 +0000 Subject: [PATCH] Do not print herror message, if w -n gethostname failed to be 100% compatible with any program Suggested by: peter --- usr.bin/w/w.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/usr.bin/w/w.c b/usr.bin/w/w.c index b02ff5a70cb7..5d6054b521e8 100644 --- a/usr.bin/w/w.c +++ b/usr.bin/w/w.c @@ -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,