diff options
author | Hans de Goede <hdegoede@redhat.com> | 2016-06-06 16:54:42 +0200 |
---|---|---|
committer | Nathan Hjelm <hjelmn@me.com> | 2016-08-17 12:52:40 -0600 |
commit | d5a1418d9fbab126ded971d34eb8e27cfaa58b3d (patch) | |
tree | 7956d246ef2448c2408cb41e736d64781b9e6f23 | |
parent | 06e86793be2efe098022fcba20be8624285132f1 (diff) | |
download | libusb-d5a1418d9fbab126ded971d34eb8e27cfaa58b3d.tar.gz |
core: Test for LIBUSB_SUCCESS instead of 0 in handle_timeout()
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
-rw-r--r-- | libusb/io.c | 2 | ||||
-rw-r--r-- | libusb/version_nano.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/libusb/io.c b/libusb/io.c index 13388cc..aa6cfca 100644 --- a/libusb/io.c +++ b/libusb/io.c @@ -1978,7 +1978,7 @@ static void handle_timeout(struct usbi_transfer *itransfer) itransfer->timeout_flags |= USBI_TRANSFER_TIMEOUT_HANDLED; r = libusb_cancel_transfer(transfer); - if (r == 0) + if (r == LIBUSB_SUCCESS) itransfer->timeout_flags |= USBI_TRANSFER_TIMED_OUT; else usbi_warn(TRANSFER_CTX(transfer), diff --git a/libusb/version_nano.h b/libusb/version_nano.h index f39bf48..9fb8855 100644 --- a/libusb/version_nano.h +++ b/libusb/version_nano.h @@ -1 +1 @@ -#define LIBUSB_NANO 11133 +#define LIBUSB_NANO 11134 |