Cast m_mbuflen() result to "size_t". It could also be "u_int" since it is
assigned to "u_int", but all the other "standalone" equivalent functions return "size_t".
This commit is contained in:
parent
b9a70faf36
commit
931165c7dc
|
@ -36,7 +36,7 @@
|
||||||
|
|
||||||
#ifdef _KERNEL
|
#ifdef _KERNEL
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
__KERNEL_RCSID(0, "$NetBSD: npf_mbuf.c,v 1.22 2018/11/15 10:23:56 maxv Exp $");
|
__KERNEL_RCSID(0, "$NetBSD: npf_mbuf.c,v 1.23 2019/09/26 18:44:45 christos Exp $");
|
||||||
|
|
||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
#include <sys/mbuf.h>
|
#include <sys/mbuf.h>
|
||||||
|
@ -62,7 +62,7 @@ __KERNEL_RCSID(0, "$NetBSD: npf_mbuf.c,v 1.22 2018/11/15 10:23:56 maxv Exp $");
|
||||||
#define m_flags_p(m,f) true
|
#define m_flags_p(m,f) true
|
||||||
#else
|
#else
|
||||||
#define m_next_ptr(m) (m)->m_next
|
#define m_next_ptr(m) (m)->m_next
|
||||||
#define m_buflen(m) (m)->m_len
|
#define m_buflen(m) ((size_t)(m)->m_len)
|
||||||
#define m_flags_p(m,f) (((m)->m_flags & (f)) != 0)
|
#define m_flags_p(m,f) (((m)->m_flags & (f)) != 0)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue