summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2013-05-13 10:30:30 +0200
committerHans de Goede <hdegoede@redhat.com>2013-05-13 10:30:30 +0200
commit3f85be6da588d17f272a4b3c9b34bbfb7510f1e7 (patch)
treebe9941744ff6ea5a4213ed47aa3bbd638ef57854
parent65b99a49dc4d5d4cf16ba880d3377196e96f1bc5 (diff)
usbredirhost: Fix coverity sign_extension warning
Coverity does not like uint8_t * int being casted to an uint64_t, change the int to an unsigned int to make it happy. Note that the int in question can never be > 255, so this is not a real issue. Signed-off-by: Hans de Goede <hdegoede@redhat.com>
-rw-r--r--usbredirhost/usbredirhost.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usbredirhost/usbredirhost.c b/usbredirhost/usbredirhost.c
index da3ef90..09745c2 100644
--- a/usbredirhost/usbredirhost.c
+++ b/usbredirhost/usbredirhost.c
@@ -1041,7 +1041,8 @@ static int usbredirhost_submit_stream_transfer_unlocked(
static int usbredirhost_start_stream_unlocked(struct usbredirhost *host,
uint8_t ep)
{
- int i, status, count = host->endpoint[EP2I(ep)].transfer_count;
+ unsigned int i, count = host->endpoint[EP2I(ep)].transfer_count;
+ int status;
/* For out endpoints 1/2 the transfers are a buffer for usb-guest data */
if (!(ep & LIBUSB_ENDPOINT_IN)) {