summaryrefslogtreecommitdiffstats
path: root/usr.bin
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1996-06-17 20:07:44 +0000
committerache <ache@FreeBSD.org>1996-06-17 20:07:44 +0000
commitaa108247fd6d7e92ef082def3c2d30df9e2e5188 (patch)
tree870723758476c35eba8a09ab53492ba977b37cda /usr.bin
parent5aea613dbecf2e30987c4f912cb069a6faf9caf6 (diff)
downloadFreeBSD-src-aa108247fd6d7e92ef082def3c2d30df9e2e5188.zip
FreeBSD-src-aa108247fd6d7e92ef082def3c2d30df9e2e5188.tar.gz
Do not print herror message, if w -n gethostname failed to be 100%
compatible with any program Suggested by: peter
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/w/w.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/usr.bin/w/w.c b/usr.bin/w/w.c
index b02ff5a7..5d6054b 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,
OpenPOWER on IntegriCloud