From: Ludovic Rousseau Date: Thu, 24 Jun 2010 08:14:24 +0000 (+0200) Subject: Add missing argument to libusb_wait_for_event() documentation, fix #55 X-Git-Tag: upstream/1.0.21~882 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7da756e09fd97efad2b35b5cee0e2b2550aac2cb;p=platform%2Fupstream%2Flibusb.git 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. --- 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); }