diff options
author | hselasky <hselasky@FreeBSD.org> | 2011-02-01 10:25:48 +0000 |
---|---|---|
committer | hselasky <hselasky@FreeBSD.org> | 2011-02-01 10:25:48 +0000 |
commit | 2f2f91bb7d8bd7fb1f8670e071f39e46b7a69a8a (patch) | |
tree | 52958d736d5c4af033bf3072319541de25af230b /sys/dev/usb/usb_pf.c | |
parent | 728432240e2e1ddb7c836030dfe3eb98e07e0449 (diff) | |
download | FreeBSD-src-2f2f91bb7d8bd7fb1f8670e071f39e46b7a69a8a.zip FreeBSD-src-2f2f91bb7d8bd7fb1f8670e071f39e46b7a69a8a.tar.gz |
Use correct kernel types for all fields in USB PF code and headers.
Approved by: thompsa (mentor)
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; |