summaryrefslogtreecommitdiffstats
path: root/sys/net/if_ethersubr.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1996-01-24 21:12:23 +0000
committerphk <phk@FreeBSD.org>1996-01-24 21:12:23 +0000
commite7b9c377f822bc4d0b50421da4eccbe73e43678b (patch)
tree0421eea4b1ecfb759a27845bf2c1d67cdf1d79c3 /sys/net/if_ethersubr.c
parentdefff6cc5b2169d11d666f9ccd9d32a5719a8f28 (diff)
downloadFreeBSD-src-e7b9c377f822bc4d0b50421da4eccbe73e43678b.zip
FreeBSD-src-e7b9c377f822bc4d0b50421da4eccbe73e43678b.tar.gz
Use new printf features rather than local kludges.
Diffstat (limited to 'sys/net/if_ethersubr.c')
-rw-r--r--sys/net/if_ethersubr.c23
1 files changed, 1 insertions, 22 deletions
diff --git a/sys/net/if_ethersubr.c b/sys/net/if_ethersubr.c
index c4e5dbc..9adc8ef 100644
--- a/sys/net/if_ethersubr.c
+++ b/sys/net/if_ethersubr.c
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)if_ethersubr.c 8.1 (Berkeley) 6/10/93
- * $Id: if_ethersubr.c,v 1.12 1995/12/09 20:47:11 phk Exp $
+ * $Id: if_ethersubr.c,v 1.13 1995/12/20 21:53:40 wollman Exp $
*/
#include <sys/param.h>
@@ -487,27 +487,6 @@ ether_input(ifp, eh, m)
}
/*
- * Convert Ethernet address to printable (loggable) representation.
- */
-static char digits[] = "0123456789abcdef";
-char *
-ether_sprintf(ap)
- register u_char *ap;
-{
- register i;
- static char etherbuf[18];
- register char *cp = etherbuf;
-
- for (i = 0; i < 6; i++) {
- *cp++ = digits[*ap >> 4];
- *cp++ = digits[*ap++ & 0xf];
- *cp++ = ':';
- }
- *--cp = 0;
- return (etherbuf);
-}
-
-/*
* Perform common duties while attaching to interface list
*/
void
OpenPOWER on IntegriCloud