Changeset 95c675b in mainline for uspace/lib/usb
- Timestamp:
- 2017-10-17T13:11:35Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 60af4cdb
- Parents:
- dbf32b1 (diff), a416d070 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - Location:
- uspace/lib/usb
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usb/include/usb/usb.h
rdbf32b1 r95c675b 35 35 #define LIBUSB_USB_H_ 36 36 37 #include <byteorder.h> 37 38 #include <stdbool.h> 38 39 #include <stdint.h> 39 #include < byteorder.h>40 #include <types/common.h> 40 41 41 42 /** Convert 16bit value from native (host) endianness to USB endianness. */ -
uspace/lib/usb/src/usb.c
rdbf32b1 r95c675b 74 74 const char *usb_str_transfer_type(usb_transfer_type_t t) 75 75 { 76 if ( t >= ARRAY_SIZE(str_transfer_type)) {76 if ((size_t)t >= ARRAY_SIZE(str_transfer_type)) { 77 77 return "invalid"; 78 78 } … … 87 87 const char *usb_str_transfer_type_short(usb_transfer_type_t t) 88 88 { 89 if ( t >= ARRAY_SIZE(str_transfer_type_short)) {89 if ((size_t)t >= ARRAY_SIZE(str_transfer_type_short)) { 90 90 return "invl"; 91 91 }
Note:
See TracChangeset
for help on using the changeset viewer.