@@ -316,7 +316,7 @@ static int get_usage(uint8_t *report_descriptor, size_t size,
316
316
#if defined(__FreeBSD__ ) && __FreeBSD__ < 10
317
317
/* The libusb version included in FreeBSD < 10 doesn't have this function. In
318
318
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.
320
320
321
321
Note that the data parameter is Unicode in UTF-16LE encoding.
322
322
Return value is the number of bytes in data, or LIBUSB_ERROR_*.
@@ -849,7 +849,7 @@ static void *read_thread(void *param)
849
849
/* Now that the read thread is stopping, Wake any threads which are
850
850
waiting on data (in hid_read_timeout()). Do this under a mutex to
851
851
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
853
853
signaled. */
854
854
pthread_mutex_lock (& dev -> mutex );
855
855
pthread_cond_broadcast (& dev -> condition );
@@ -958,7 +958,7 @@ hid_device * HID_API_EXPORT hid_open_path(const char *path)
958
958
(ep -> bEndpointAddress & LIBUSB_ENDPOINT_DIR_MASK )
959
959
== LIBUSB_ENDPOINT_IN ;
960
960
961
- /* Decide whether to use it for intput or output. */
961
+ /* Decide whether to use it for input or output. */
962
962
if (dev -> input_endpoint == 0 &&
963
963
is_interrupt && is_input ) {
964
964
/* Use this endpoint for INPUT */
@@ -1014,7 +1014,7 @@ int HID_API_EXPORT hid_write(hid_device *dev, const unsigned char *data, size_t
1014
1014
1015
1015
1016
1016
if (dev -> output_endpoint <= 0 ) {
1017
- /* No interrput out endpoint. Use the Control Endpoint */
1017
+ /* No interrupt out endpoint. Use the Control Endpoint */
1018
1018
res = libusb_control_transfer (dev -> device_handle ,
1019
1019
LIBUSB_REQUEST_TYPE_CLASS |LIBUSB_RECIPIENT_INTERFACE |LIBUSB_ENDPOINT_OUT ,
1020
1020
0x09 /*HID Set_Report*/ ,
0 commit comments