git: fd0296154d47 - main - mbuf: allow const pointer for m_rcvif()
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 21 Nov 2025 22:44:35 UTC
The branch main has been updated by glebius:
URL: https://cgit.FreeBSD.org/src/commit/?id=fd0296154d471daeaf113672cb989d5abea9a610
commit fd0296154d471daeaf113672cb989d5abea9a610
Author: Gleb Smirnoff <glebius@FreeBSD.org>
AuthorDate: 2025-11-21 22:43:47 +0000
Commit: Gleb Smirnoff <glebius@FreeBSD.org>
CommitDate: 2025-11-21 22:43:47 +0000
mbuf: allow const pointer for m_rcvif()
---
sys/sys/mbuf.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sys/sys/mbuf.h b/sys/sys/mbuf.h
index f9141bf70742..1f1b05857ebf 100644
--- a/sys/sys/mbuf.h
+++ b/sys/sys/mbuf.h
@@ -1289,7 +1289,7 @@ m_align(struct mbuf *m, int len)
/* Return the rcvif of a packet header. */
static __inline struct ifnet *
-m_rcvif(struct mbuf *m)
+m_rcvif(const struct mbuf *m)
{
M_ASSERTPKTHDR(m);