summaryrefslogtreecommitdiffstats
path: root/src/log.c
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2015-06-25 01:03:23 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2015-06-25 01:03:23 +0200
commit9ac7f3588dda7d175e04878e7b871a88306d13bf (patch)
tree00846bf23da618f6fb43da1b24c8b877dd6df60f /src/log.c
parentfc5e06a19c090d98620a735e33b57aee7c43107d (diff)
downloadfastd-9ac7f3588dda7d175e04878e7b871a88306d13bf.tar
fastd-9ac7f3588dda7d175e04878e7b871a88306d13bf.zip
Don't depend on net/if_ether.h
Instead of adding compatiblity code to make this work with musl, just duplicate the needed definitions in fastd.
Diffstat (limited to 'src/log.c')
-rw-r--r--src/log.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/log.c b/src/log.c
index 7b68f48..bd38821 100644
--- a/src/log.c
+++ b/src/log.c
@@ -74,7 +74,7 @@ size_t fastd_snprint_peer_address(char *buffer, size_t size, const fastd_peer_ad
if (!bind_address && hide)
return snprintf_safe(buffer, size, "[hidden]:%u", ntohs(address->in6.sin6_port));
if (inet_ntop(AF_INET6, &address->in6.sin6_addr, addr_buf, sizeof(addr_buf))) {
- char ifname_buf[IF_NAMESIZE];
+ char ifname_buf[IFNAMSIZ];
if (!iface && IN6_IS_ADDR_LINKLOCAL(&address->in6.sin6_addr))
iface = if_indextoname(address->in6.sin6_scope_id, ifname_buf);