@@ -316,7 +316,7 @@ static int get_usage(uint8_t *report_descriptor, size_t size,
316316#if defined(__FreeBSD__ ) && __FreeBSD__ < 10
317317/* The libusb version included in FreeBSD < 10 doesn't have this function. In
318318 mainline libusb, it's inlined in libusb.h. This function will bear a striking
319- resemblence to that one, because there's about one way to code it.
319+ resemblance to that one, because there's about one way to code it.
320320
321321 Note that the data parameter is Unicode in UTF-16LE encoding.
322322 Return value is the number of bytes in data, or LIBUSB_ERROR_*.
@@ -849,7 +849,7 @@ static void *read_thread(void *param)
849849 /* Now that the read thread is stopping, Wake any threads which are
850850 waiting on data (in hid_read_timeout()). Do this under a mutex to
851851 make sure that a thread which is about to go to sleep waiting on
852- the condition acutally will go to sleep before the condition is
852+ the condition actually will go to sleep before the condition is
853853 signaled. */
854854 pthread_mutex_lock (& dev -> mutex );
855855 pthread_cond_broadcast (& dev -> condition );
@@ -958,7 +958,7 @@ hid_device * HID_API_EXPORT hid_open_path(const char *path)
958958 (ep -> bEndpointAddress & LIBUSB_ENDPOINT_DIR_MASK )
959959 == LIBUSB_ENDPOINT_IN ;
960960
961- /* Decide whether to use it for intput or output. */
961+ /* Decide whether to use it for input or output. */
962962 if (dev -> input_endpoint == 0 &&
963963 is_interrupt && is_input ) {
964964 /* Use this endpoint for INPUT */
@@ -1014,7 +1014,7 @@ int HID_API_EXPORT hid_write(hid_device *dev, const unsigned char *data, size_t
10141014
10151015
10161016 if (dev -> output_endpoint <= 0 ) {
1017- /* No interrput out endpoint. Use the Control Endpoint */
1017+ /* No interrupt out endpoint. Use the Control Endpoint */
10181018 res = libusb_control_transfer (dev -> device_handle ,
10191019 LIBUSB_REQUEST_TYPE_CLASS |LIBUSB_RECIPIENT_INTERFACE |LIBUSB_ENDPOINT_OUT ,
10201020 0x09 /*HID Set_Report*/ ,
0 commit comments