aboutsummaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/usb_hid.c
diff options
context:
space:
mode:
authorHans Petter Selasky <hselasky@FreeBSD.org>2012-04-02 10:50:42 +0000
committerHans Petter Selasky <hselasky@FreeBSD.org>2012-04-02 10:50:42 +0000
commit6d917491f5e4d12a9c833584e66600486ec55a09 (patch)
tree70a9d586e75b3d8e087069f07020564df44b0b99 /sys/dev/usb/usb_hid.c
parent120a742b8682f4974f143fa9b020f53ba92864a5 (diff)
downloadsrc-6d917491f5e4d12a9c833584e66600486ec55a09.tar.gz
src-6d917491f5e4d12a9c833584e66600486ec55a09.zip
Fix compiler warnings, mostly signed issues,
when USB modules are compiled with WARNS=9. MFC after: 1 weeks
Notes
Notes: svn path=/head/; revision=233774
Diffstat (limited to 'sys/dev/usb/usb_hid.c')
-rw-r--r--sys/dev/usb/usb_hid.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/usb/usb_hid.c b/sys/dev/usb/usb_hid.c
index 6bd51cd5b37f..165919bc6622 100644
--- a/sys/dev/usb/usb_hid.c
+++ b/sys/dev/usb/usb_hid.c
@@ -612,7 +612,7 @@ hid_report_size(const void *buf, usb_size_t len, enum hid_kind k, uint8_t *id)
* hid_locate
*------------------------------------------------------------------------*/
int
-hid_locate(const void *desc, usb_size_t size, uint32_t u, enum hid_kind k,
+hid_locate(const void *desc, usb_size_t size, int32_t u, enum hid_kind k,
uint8_t index, struct hid_location *loc, uint32_t *flags, uint8_t *id)
{
struct hid_data *d;
@@ -742,7 +742,7 @@ hid_put_data_unsigned(uint8_t *buf, usb_size_t len,
* hid_is_collection
*------------------------------------------------------------------------*/
int
-hid_is_collection(const void *desc, usb_size_t size, uint32_t usage)
+hid_is_collection(const void *desc, usb_size_t size, int32_t usage)
{
struct hid_data *hd;
struct hid_item hi;