summaryrefslogtreecommitdiff
path: root/src/lib/libc/net/ethers.c
diff options
context:
space:
mode:
authordlg <>2025-06-29 00:33:46 +0000
committerdlg <>2025-06-29 00:33:46 +0000
commitba87729fddc1240c1ad88b4d15c02ac77e1dd337 (patch)
treef09debfabcd0674433ce9caff332612512b87edb /src/lib/libc/net/ethers.c
parentfccd42a0ddbc572e85ac564dc08f0da4315d8275 (diff)
downloadopenbsd-ba87729fddc1240c1ad88b4d15c02ac77e1dd337.tar.gz
openbsd-ba87729fddc1240c1ad88b4d15c02ac77e1dd337.tar.bz2
openbsd-ba87729fddc1240c1ad88b4d15c02ac77e1dd337.zip
make the argument to ether_ntoa const.
this drives me nuts when i want to print something out of what's already const. casting it works, but feels gross. ok guenther@ tb@ deraadt@ enh says this is already in bionic/glibc/musl
Diffstat (limited to 'src/lib/libc/net/ethers.c')
-rw-r--r--src/lib/libc/net/ethers.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libc/net/ethers.c b/src/lib/libc/net/ethers.c
index d62be1ca71..6edad5c5e5 100644
--- a/src/lib/libc/net/ethers.c
+++ b/src/lib/libc/net/ethers.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ethers.c,v 1.27 2019/01/25 00:19:25 millert Exp $ */ 1/* $OpenBSD: ethers.c,v 1.28 2025/06/29 00:33:46 dlg Exp $ */
2 2
3/* 3/*
4 * Copyright (c) 1998 Todd C. Miller <millert@openbsd.org> 4 * Copyright (c) 1998 Todd C. Miller <millert@openbsd.org>
@@ -42,7 +42,7 @@
42static char * _ether_aton(const char *, struct ether_addr *); 42static char * _ether_aton(const char *, struct ether_addr *);
43 43
44char * 44char *
45ether_ntoa(struct ether_addr *e) 45ether_ntoa(const struct ether_addr *e)
46{ 46{
47 static char a[] = "xx:xx:xx:xx:xx:xx"; 47 static char a[] = "xx:xx:xx:xx:xx:xx";
48 48