From 9879bb2ba28891cb2a4231c39ea2d5d2da730be7 Mon Sep 17 00:00:00 2001 From: "Philip P. Moltmann" Date: Tue, 20 Sep 2016 14:11:26 -0700 Subject: [PATCH] usb-bulk-transfer: Clarify sign-iy-ness of param Parameter is implicily converted to unsigned when assigned to the struct, so make sure users are aware of this. Test: compiled Change-Id: I25ca6b24591497aa4e7ce8db262ce1099c2b7b09 --- libusbhost/include/usbhost/usbhost.h | 2 +- libusbhost/usbhost.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libusbhost/include/usbhost/usbhost.h b/libusbhost/include/usbhost/usbhost.h index 88b5b4406..84594c818 100644 --- a/libusbhost/include/usbhost/usbhost.h +++ b/libusbhost/include/usbhost/usbhost.h @@ -216,7 +216,7 @@ int usb_device_control_transfer(struct usb_device *device, int usb_device_bulk_transfer(struct usb_device *device, int endpoint, void* buffer, - int length, + unsigned int length, unsigned int timeout); /** Reset USB bus for the device */ diff --git a/libusbhost/usbhost.c b/libusbhost/usbhost.c index 299fdc475..68aca1774 100644 --- a/libusbhost/usbhost.c +++ b/libusbhost/usbhost.c @@ -600,7 +600,7 @@ int usb_device_control_transfer(struct usb_device *device, int usb_device_bulk_transfer(struct usb_device *device, int endpoint, void* buffer, - int length, + unsigned int length, unsigned int timeout) { struct usbdevfs_bulktransfer ctrl;