From 98f1b30d24359cb3185051b8df9ebb663cc10369 Mon Sep 17 00:00:00 2001 From: Daniel Drake Date: Mon, 14 Sep 2009 08:01:24 +0100 Subject: [PATCH] Clarify that timeout 0 means unlimited timeout --- libusb/sync.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/libusb/sync.c b/libusb/sync.c index 72cbcf2..bd4d970 100644 --- a/libusb/sync.c +++ b/libusb/sync.c @@ -60,8 +60,8 @@ static void ctrl_transfer_cb(struct libusb_transfer *transfer) * \param wLength the length field for the setup packet. The data buffer should * be at least this size. * \param timeout timeout (in millseconds) that this function should wait - * before giving up due to no response being received. For no timeout, use - * value 0. + * before giving up due to no response being received. For an unlimited + * timeout, use value 0. * \returns on success, the number of bytes actually transferred * \returns LIBUSB_ERROR_TIMEOUT if the transfer timed out * \returns LIBUSB_ERROR_PIPE if the control request was not supported by the @@ -240,8 +240,8 @@ static int do_sync_bulk_transfer(struct libusb_device_handle *dev_handle, * \param transferred output location for the number of bytes actually * transferred. * \param timeout timeout (in millseconds) that this function should wait - * before giving up due to no response being received. For no timeout, use - * value 0. + * before giving up due to no response being received. For an unlimited + * timeout, use value 0. * * \returns 0 on success (and populates transferred) * \returns LIBUSB_ERROR_TIMEOUT if the transfer timed out (and populates @@ -290,8 +290,8 @@ API_EXPORTED int libusb_bulk_transfer(struct libusb_device_handle *dev_handle, * \param transferred output location for the number of bytes actually * transferred. * \param timeout timeout (in millseconds) that this function should wait - * before giving up due to no response being received. For no timeout, use - * value 0. + * before giving up due to no response being received. For an unlimited + * timeout, use value 0. * * \returns 0 on success (and populates transferred) * \returns LIBUSB_ERROR_TIMEOUT if the transfer timed out -- 2.7.4