summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLudovic Rousseau <rousseau@debian.org>2010-06-24 10:14:24 +0200
committerPete Batard <pbatard@gmail.com>2010-09-21 10:47:20 +0100
commit6bbdc6128f31af878826e3530bdfa999e6120741 (patch)
tree0d40afa137500489205b59fb4baa417b5867de62
parent5e6cff30dc0773c83c0eddc62beb3700c94379ad (diff)
downloadlibusb-6bbdc6128f31af878826e3530bdfa999e6120741.tar.gz
Add a missing argument to libusb_wait_for_event
In the libusb_wait_for_event() sample code for section "Letting other threads do the work for you" libusb_wait_for_event() was used without the struct timeval *tv parameter. The sample code was invalid and could not be compiled.
-rw-r--r--libusb/io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libusb/io.c b/libusb/io.c
index 90590ef..ab37e8d 100644
--- a/libusb/io.c
+++ b/libusb/io.c
@@ -859,7 +859,7 @@ if (libusb_try_lock_events(ctx) == 0) {
goto retry;
}
- libusb_wait_for_event(ctx);
+ libusb_wait_for_event(ctx, NULL);
}
libusb_unlock_event_waiters(ctx);
}