diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2001-03-07 19:31:59 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2001-03-07 19:31:59 +0000 |
commit | 57e7b129bae585ce78b4c3f78263e88c1541ec93 (patch) | |
tree | b0c782a41adac079479023fc17087a1bde80adb4 /usr.sbin | |
parent | 57af8bea2dee3f854bcd3de22373e26c323725f1 (diff) |
print ether_ntoa() compatible
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/arp/arp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/arp/arp.c b/usr.sbin/arp/arp.c index 509b3853972..f22eed495aa 100644 --- a/usr.sbin/arp/arp.c +++ b/usr.sbin/arp/arp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: arp.c,v 1.16 2000/10/23 14:55:12 aaron Exp $ */ +/* $OpenBSD: arp.c,v 1.17 2001/03/07 19:31:58 deraadt Exp $ */ /* $NetBSD: arp.c,v 1.12 1995/04/24 13:25:18 cgd Exp $ */ /* @@ -446,8 +446,8 @@ void ether_print(cp) const u_char *cp; { - (void)printf("%x:%x:%x:%x:%x:%x", cp[0], cp[1], cp[2], cp[3], cp[4], - cp[5]); + (void)printf("%02x:%02x:%02x:%02x:%02x:%02x", + cp[0], cp[1], cp[2], cp[3], cp[4], cp[5]); } void |