Repeat after me: sizeof(int) != sizeof(void *).
This commit is contained in:
parent
929791c8cc
commit
a7a1238911
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=106517
@ -1308,7 +1308,7 @@ awi_fix_rxhdr(sc, m0)
|
||||
m_adj(m0, sizeof(wh));
|
||||
}
|
||||
if (ALIGN(mtod(m0, caddr_t) + sizeof(struct ether_header)) !=
|
||||
(u_int)(mtod(m0, caddr_t) + sizeof(struct ether_header))) {
|
||||
(uintptr_t)(mtod(m0, caddr_t) + sizeof(struct ether_header))) {
|
||||
/* XXX: we loose to estimate the type of encapsulation */
|
||||
struct mbuf *n, *n0, **np;
|
||||
caddr_t newdata;
|
||||
|
Loading…
Reference in New Issue
Block a user