summaryrefslogtreecommitdiff
path: root/sys/lib/libsa/ether.c
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2014-11-19 20:28:57 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2014-11-19 20:28:57 +0000
commit5184884c8610edc12e505d668681d8d45a5f1176 (patch)
tree7ce1cc7eda73ec1d9bee113cb90ac09e39269e6e /sys/lib/libsa/ether.c
parent488bb12fd0af706881e23eb57ed2b9cc00113500 (diff)
Sprinkle const whenever possible.
Diffstat (limited to 'sys/lib/libsa/ether.c')
-rw-r--r--sys/lib/libsa/ether.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/lib/libsa/ether.c b/sys/lib/libsa/ether.c
index 20b5e8f6e67..621fc7ce243 100644
--- a/sys/lib/libsa/ether.c
+++ b/sys/lib/libsa/ether.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ether.c,v 1.9 2014/11/19 19:59:39 miod Exp $ */
+/* $OpenBSD: ether.c,v 1.10 2014/11/19 20:28:56 miod Exp $ */
/* $NetBSD: ether.c,v 1.8 1996/10/13 02:29:00 christos Exp $ */
/*
@@ -123,9 +123,9 @@ readether(struct iodesc *d, void *pkt, size_t len, time_t tleft,
/*
* Convert Ethernet address to printable (loggable) representation.
*/
-static char digits[] = "0123456789abcdef";
-char *
-ether_sprintf(u_char *ap)
+static const char digits[] = "0123456789abcdef";
+const char *
+ether_sprintf(const u_char *ap)
{
int i;
static char etherbuf[18];