Add missing argument to libusb_wait_for_event() documentation, fix #55
authorLudovic Rousseau <rousseau@debian.org>
Thu, 24 Jun 2010 08:14:24 +0000 (10:14 +0200)
committerPeter Stuge <peter@stuge.se>
Sat, 16 Oct 2010 13:36:19 +0000 (15:36 +0200)
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

index 90590ef..ab37e8d 100644 (file)
@@ -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);
 }