From 7da756e09fd97efad2b35b5cee0e2b2550aac2cb Mon Sep 17 00:00:00 2001 From: Ludovic Rousseau Date: Thu, 24 Jun 2010 10:14:24 +0200 Subject: [PATCH] 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. --- libusb/io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.7.4