inet6: Fix LINT build

mli_delete_locked() is the only function that takes a const ifnet.
Since it's a static function there's no advantage to keeping it const.
Since `if_t` is not a const struct (currently) the compiler throws an
error passing the ifp around to ifnet functions.

Fixes:		eb1da3e525
Sponsored by:	Juniper Networks, Inc.
This commit is contained in:
Justin Hibbits 2022-12-20 15:08:34 -05:00
parent 3845cce70d
commit 5674838159

View file

@ -103,7 +103,7 @@ __FBSDID("$FreeBSD$");
#define KTR_MLD KTR_INET6
#endif
static void mli_delete_locked(const struct ifnet *);
static void mli_delete_locked(struct ifnet *);
static void mld_dispatch_packet(struct mbuf *);
static void mld_dispatch_queue(struct mbufq *, int);
static void mld_final_leave(struct in6_multi *, struct mld_ifsoftc *);
@ -569,7 +569,7 @@ mld_domifdetach(struct ifnet *ifp)
}
static void
mli_delete_locked(const struct ifnet *ifp)
mli_delete_locked(struct ifnet *ifp)
{
struct mld_ifsoftc *mli, *tmli;