diff options
author | hselasky <hselasky@FreeBSD.org> | 2014-05-28 12:27:41 +0000 |
---|---|---|
committer | hselasky <hselasky@FreeBSD.org> | 2014-05-28 12:27:41 +0000 |
commit | ed75a5da80ab8dadf9a4594e4313cae2a34d40a7 (patch) | |
tree | 1ccd4ea5c5e5f80863d78bd082d69fdd063fabe2 /usr.sbin/usbdump | |
parent | bd813b511d963e5226432ba580d8bbc6c71d18d4 (diff) | |
download | FreeBSD-src-ed75a5da80ab8dadf9a4594e4313cae2a34d40a7.zip FreeBSD-src-ed75a5da80ab8dadf9a4594e4313cae2a34d40a7.tar.gz |
Fix for big endian architectures. The "up_address" field is 8-bit and
does not need byte swapping.
MFC after: 1 week
Diffstat (limited to 'usr.sbin/usbdump')
-rw-r--r-- | usr.sbin/usbdump/usbdump.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/usbdump/usbdump.c b/usr.sbin/usbdump/usbdump.c index 43fde90..d61277a 100644 --- a/usr.sbin/usbdump/usbdump.c +++ b/usr.sbin/usbdump/usbdump.c @@ -473,7 +473,7 @@ print_apacket(const struct header_32 *hdr, const uint8_t *ptr, int ptr_len) */ up->up_totlen = le32toh(up->up_totlen); up->up_busunit = le32toh(up->up_busunit); - up->up_address = le32toh(up->up_address); + up->up_address = up->up_address; up->up_flags = le32toh(up->up_flags); up->up_status = le32toh(up->up_status); up->up_error = le32toh(up->up_error); |