summaryrefslogtreecommitdiff
path: root/usr.sbin/arp/arp.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/arp/arp.c')
-rw-r--r--usr.sbin/arp/arp.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/usr.sbin/arp/arp.c b/usr.sbin/arp/arp.c
index 8f243a4c834..3c070fbd579 100644
--- a/usr.sbin/arp/arp.c
+++ b/usr.sbin/arp/arp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: arp.c,v 1.61 2014/09/03 10:39:41 mpi Exp $ */
+/* $OpenBSD: arp.c,v 1.62 2014/09/07 22:40:30 bluhm Exp $ */
/* $NetBSD: arp.c,v 1.12 1995/04/24 13:25:18 cgd Exp $ */
/*
@@ -531,7 +531,6 @@ print_entry(struct sockaddr_dl *sdl, struct sockaddr_inarp *sin,
struct hostent *hp = NULL;
int addrwidth, llwidth, ifwidth ;
struct timeval now;
- char flgbuf[8];
gettimeofday(&now, 0);
@@ -569,12 +568,10 @@ print_entry(struct sockaddr_dl *sdl, struct sockaddr_inarp *sin,
else
printf(" %-10.10s", "expired");
- snprintf(flgbuf, sizeof(flgbuf), "%s%s%s",
+ printf(" %s%s%s\n",
(rtm->rtm_flags & RTF_LOCAL) ? "l" : "",
(sin->sin_other & SIN_PROXY) ? "P" : "",
(rtm->rtm_flags & RTF_ANNOUNCE) ? "p" : "");
-
- printf(" %s\n", flgbuf);
}
/*