Core: Handle >= 1 second transfer timeout in libusb_submit_transfer()
authorPeter Stuge <peter@stuge.se>
Wed, 22 Aug 2012 08:32:10 +0000 (01:32 -0700)
committerPete Batard <pete@akeo.ie>
Wed, 22 Aug 2012 21:09:52 +0000 (22:09 +0100)
commit01f31ebe1ebfa552980750a1f3d2847819dea25a
tree7e5b0c820b2a502455acf81c2c8571a7a60fff82
parent9ceb3bcd5ef5deda2a2c0d34dbef23f4afaff93d
Core: Handle >= 1 second transfer timeout in libusb_submit_transfer()

* Comparisons between tv_nsec and 1 sec should be >= rather than >,
  as we can end up in situations where tv_nsec is exactly 1000000000,
  which calls such as timerfd_create() do not accept.
* Issue reported by Sebastian K. See:
  https://sourceforge.net/mailarchive/message.php?msg_id=29706972
libusb/io.c
libusb/version_nano.h