summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--usr.sbin/arp/arp.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/usr.sbin/arp/arp.c b/usr.sbin/arp/arp.c
index bff4cccfa95..d2c329021ec 100644
--- 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));