artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7203201
)
warnx, from netbsd
author
deraadt
<deraadt@openbsd.org>
Tue, 10 Dec 1996 15:15:39 +0000
(15:15 +0000)
committer
deraadt
<deraadt@openbsd.org>
Tue, 10 Dec 1996 15:15:39 +0000
(15:15 +0000)
usr.sbin/arp/arp.c
patch
|
blob
|
history
diff --git
a/usr.sbin/arp/arp.c
b/usr.sbin/arp/arp.c
index
bff4ccc
..
d2c3290
100644
(file)
--- a/
usr.sbin/arp/arp.c
+++ b/
usr.sbin/arp/arp.c
@@
-508,14
+508,12
@@
getinetaddr(host, inap)
const char *host;
struct in_addr *inap;
{
- extern char *__progname; /* Program name, from crt0. */
struct hostent *hp;
if (inet_aton(host, inap) == 1)
return (0);
if ((hp = gethostbyname(host)) == NULL) {
- (void)fprintf(stderr, "%s: %s: ", __progname, host);
- herror(NULL);
+ warnx("%s: %s\n", host, hstrerror(h_errno));
return (-1);
}
(void)memcpy(inap, hp->h_addr, sizeof(*inap));