diff options
author | Ludovic Rousseau <rousseau@debian.org> | 2010-06-24 10:14:24 +0200 |
---|---|---|
committer | Peter Stuge <peter@stuge.se> | 2010-10-16 15:36:19 +0200 |
commit | 7da756e09fd97efad2b35b5cee0e2b2550aac2cb (patch) | |
tree | 88504830b580612d5d4b1ca706f8d86f4a07c4bc /libusb/io.c | |
parent | 678c242705b29f9cb6cc421b5625a6485ae58047 (diff) | |
download | android_external_libusbx-7da756e09fd97efad2b35b5cee0e2b2550aac2cb.tar.gz android_external_libusbx-7da756e09fd97efad2b35b5cee0e2b2550aac2cb.tar.bz2 android_external_libusbx-7da756e09fd97efad2b35b5cee0e2b2550aac2cb.zip |
Add missing argument to libusb_wait_for_event() documentation, fix #55
In the libusb_wait_for_event() sample code in the section "Letting other
threads do the work for you" the call to libusb_wait_for_event() was not
updated by commit 1df713d622ab4f0b03aad72d903ac7beb8fb3b90, which added
the libusb_context *ctx parameter to the function, so the sample code
was broken until now.
Diffstat (limited to 'libusb/io.c')
-rw-r--r-- | libusb/io.c | 2 |
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); } |