From ff6369372ef51e2d2deec7857f8323856c9e9759 Mon Sep 17 00:00:00 2001 From: bz Date: Thu, 26 Jun 2014 17:03:08 +0000 Subject: 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 --- sys/dev/netfpga10g/nf10bmac/if_nf10bmac.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/dev/netfpga10g') diff --git a/sys/dev/netfpga10g/nf10bmac/if_nf10bmac.c b/sys/dev/netfpga10g/nf10bmac/if_nf10bmac.c index c152e7a..3a73778 100644 --- a/sys/dev/netfpga10g/nf10bmac/if_nf10bmac.c +++ b/sys/dev/netfpga10g/nf10bmac/if_nf10bmac.c @@ -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--) -- cgit v1.1