core: Fix return value of usbi_clock_gettime()
authorChris Dickens <christopher.a.dickens@gmail.com>
Mon, 16 Mar 2020 08:06:27 +0000 (01:06 -0700)
committerChris Dickens <christopher.a.dickens@gmail.com>
Mon, 16 Mar 2020 08:06:27 +0000 (01:06 -0700)
commit89d574b87976ef58b6c94c26864dcc5330b0c067
treeafbd36df0996cfe1294869a3edb0d0521a4ece57
parent15bd82e9a2935fd4e5c1a9ed83c73d364e92d8ec
core: Fix return value of usbi_clock_gettime()

In most cases, usbi_clock_gettime() will map to the standard library's
clock_gettime() function. The semantics of this function are that it
returns -1 upon failure with the error code available in the errno
variable. The backends that need to implement this function should
follow the same semantics, and the return value of usbi_clock_gettime()
should not be directly propagated upwards.

Signed-off-by: Chris Dickens <christopher.a.dickens@gmail.com>
libusb/io.c
libusb/os/darwin_usb.c
libusb/os/windows_common.c
libusb/version_nano.h