From c0933269c37ac90c1923c7b42d3016fb012f83ae Mon Sep 17 00:00:00 2001 From: Peter Wemm Date: Tue, 26 Feb 2002 01:11:08 +0000 Subject: [PATCH] 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). --- sys/net/if.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sys/net/if.c b/sys/net/if.c index a88d8361fb14..3cb79949d5ca 100644 --- a/sys/net/if.c +++ b/sys/net/if.c @@ -71,6 +71,9 @@ #include #endif #endif +#ifdef INET +#include +#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 }