diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2015-06-25 01:03:23 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2015-06-25 01:03:23 +0200 |
commit | 9ac7f3588dda7d175e04878e7b871a88306d13bf (patch) | |
tree | 00846bf23da618f6fb43da1b24c8b877dd6df60f /src/log.c | |
parent | fc5e06a19c090d98620a735e33b57aee7c43107d (diff) | |
download | fastd-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |