diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2010-07-03 03:38:23 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2010-07-03 03:38:23 +0000 |
commit | 6e0748c7e4bffea8c939f38487c89e2982812917 (patch) | |
tree | e35d6c74bc3dcad601f7d611d336d68fdefdc387 /usr.bin | |
parent | e7a8fb489ca96714af9e15f1d6cc558efd9f9b04 (diff) |
When open() fails, warn using the device name, not the host name.
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/tip/hunt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tip/hunt.c b/usr.bin/tip/hunt.c index 92170e33bfa..a7ec77b787f 100644 --- a/usr.bin/tip/hunt.c +++ b/usr.bin/tip/hunt.c @@ -1,4 +1,4 @@ -/* $OpenBSD: hunt.c,v 1.18 2010/07/02 05:52:48 nicm Exp $ */ +/* $OpenBSD: hunt.c,v 1.19 2010/07/03 03:38:22 nicm Exp $ */ /* $NetBSD: hunt.c,v 1.6 1997/04/20 00:02:10 mellon Exp $ */ /* @@ -89,7 +89,7 @@ hunt(char *hosts) fd = open(device, O_RDWR | (vgetnum(DC) ? O_NONBLOCK : 0)); if (fd < 0) - perror(host); + perror(device); } alarm(0); |