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:
bz 2014-06-26 17:03:08 +00:00
parent 2fe5a9ed99
commit ff6369372e

View File

@ -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--)