summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Crispin <john@phrozen.org>2018-07-30 23:52:06 +0200
committerJohn Crispin <john@phrozen.org>2018-07-30 23:52:06 +0200
commita0a1e52eb300b574098ae18fc7e6849ff50c2e5e (patch)
treea3ad58a558ae0791ed225ea8231dc96d15536eec
parent75ee79052e2307a7eac2d1e12712b0a8f051b4c4 (diff)
downloadnetifd-a0a1e52eb300b574098ae18fc7e6849ff50c2e5e.tar.gz
fix compile error
netifd-2018-07-30-75ee7905/interface-ip.c:724:11: error: unused variable 'macaddr' [-Werror=unused-variable] Signed-off-by: John Crispin <john@phrozen.org>
-rw-r--r--interface-ip.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/interface-ip.c b/interface-ip.c
index c855cdb..b577e66 100644
--- a/interface-ip.c
+++ b/interface-ip.c
@@ -721,7 +721,6 @@ eui64_ifaceid(struct interface *iface, struct in6_addr *addr)
return false;
/* get mac address */
- uint8_t *macaddr = iface->l3_dev.dev->settings.macaddr;
uint8_t *ifaceid = addr->s6_addr + 8;
memcpy(ifaceid, st.macaddr, 3);
memcpy(ifaceid + 5, st.macaddr + 3, 3);