summaryrefslogtreecommitdiffstats
path: root/sys/net
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2002-02-26 01:11:08 +0000
committerpeter <peter@FreeBSD.org>2002-02-26 01:11:08 +0000
commit3f12466c8d9d0889a2a539e50cf9f656012a466d (patch)
tree4e99fef9e7f118e8dd4854e77ff984c565518368 /sys/net
parent4a41840718480fdba8bbce784050e6d4ca69c672 (diff)
downloadFreeBSD-src-3f12466c8d9d0889a2a539e50cf9f656012a466d.zip
FreeBSD-src-3f12466c8d9d0889a2a539e50cf9f656012a466d.tar.gz
Fix a warning by pulling prototype for arp_ifinit() into scope.
Then fix cast the correct value into an incorrect value, which was not detected due to the missing prototype (but was harmless anyway).
Diffstat (limited to 'sys/net')
-rw-r--r--sys/net/if.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/net/if.c b/sys/net/if.c
index a88d836..3cb7994 100644
--- a/sys/net/if.c
+++ b/sys/net/if.c
@@ -71,6 +71,9 @@
#include <netinet6/in6_ifattach.h>
#endif
#endif
+#ifdef INET
+#include <netinet/if_ether.h>
+#endif
static int ifconf(u_long, caddr_t);
static void if_grow(void);
@@ -1827,7 +1830,7 @@ if_setlladdr(struct ifnet *ifp, const u_char *lladdr, int len)
TAILQ_FOREACH(ifa, &ifp->if_addrhead, ifa_link) {
if (ifa->ifa_addr != NULL &&
ifa->ifa_addr->sa_family == AF_INET)
- arp_ifinit((struct arpcom *)ifp, ifa);
+ arp_ifinit(ifp, ifa);
}
#endif
}
OpenPOWER on IntegriCloud