Rather than using a constant use sizeof(val) allowing for the length
to automatically change as we switch between 32/64bit. MFC after: 2 weeks
This commit is contained in:
parent
2fe5a9ed99
commit
ff6369372e
@ -229,7 +229,7 @@ nf10bmac_tx_locked(struct nf10bmac_softc *sc, struct mbuf *m)
|
||||
int sl;
|
||||
|
||||
if (l == (ml - 1))
|
||||
len = 4;
|
||||
len = sizeof(val);
|
||||
cl = len;
|
||||
|
||||
for (s = 0, sl = len; sl > 0; sl--)
|
||||
|
Loading…
Reference in New Issue
Block a user