git: 56748381595d - main - inet6: Fix LINT build
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 20 Dec 2022 20:22:48 UTC
The branch main has been updated by jhibbits:
URL: https://cgit.FreeBSD.org/src/commit/?id=56748381595d245c91d15da3b4a1f771e078f939
commit 56748381595d245c91d15da3b4a1f771e078f939
Author: Justin Hibbits <jhibbits@FreeBSD.org>
AuthorDate: 2022-12-20 20:08:34 +0000
Commit: Justin Hibbits <jhibbits@FreeBSD.org>
CommitDate: 2022-12-20 20:23:49 +0000
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: eb1da3e5258238e1c0555c6a006a341df0821d8e
Sponsored by: Juniper Networks, Inc.
---
sys/netinet6/mld6.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/sys/netinet6/mld6.c b/sys/netinet6/mld6.c
index 60dc3a59eb4f..f20348f653ef 100644
--- a/sys/netinet6/mld6.c
+++ b/sys/netinet6/mld6.c
@@ -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;