diff options
Diffstat (limited to 'sys/dev/usb/usb_pf.c')
-rw-r--r-- | sys/dev/usb/usb_pf.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/usb/usb_pf.c b/sys/dev/usb/usb_pf.c index 2658907..7fada4c 100644 --- a/sys/dev/usb/usb_pf.c +++ b/sys/dev/usb/usb_pf.c @@ -228,10 +228,10 @@ usbpf_xfertap(struct usb_xfer *xfer, int type) ptr += sizeof(struct usbpf_pkthdr); for (i = 0; i < up->up_frames; i++) { - if (ptr + sizeof(u_int32_t) >= end) + if (ptr + sizeof(uint32_t) >= end) goto done; - *((u_int32_t *)ptr) = htole32(xfer->frlengths[i]); - ptr += sizeof(u_int32_t); + *((uint32_t *)ptr) = htole32(xfer->frlengths[i]); + ptr += sizeof(uint32_t); if (ptr + xfer->frlengths[i] >= end) goto done; |