Skip to content

Commit a6a622f

Browse files
diegoherranzsignal11
authored andcommitted
all: Fix a few typos
1 parent 1f615ef commit a6a622f

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

libusb/hid.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -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*/,

linux/README.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ application and build using the build parameters in the Makefile.
1616
Libusb Implementation notes
1717
----------------------------
1818
For the libusb implementation, libusb-1.0 must be installed. Libusb 1.0 is
19-
different than the legacy libusb 0.1 which is installed on many systems. To
19+
different than the legacy libusb 0.1 which is installed on many systems. To
2020
install libusb-1.0 on Ubuntu and other Debian-based systems, run:
2121
sudo apt-get install libusb-1.0-0-dev
2222

mac/hid.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -601,7 +601,7 @@ static void hid_report_callback(void *context, IOReturn result, void *sender,
601601

602602
}
603603

604-
/* This gets called when the read_thred's run loop gets signaled by
604+
/* This gets called when the read_thread's run loop gets signaled by
605605
hid_close(), and serves to stop the read_thread's run loop. */
606606
static void perform_signal_callback(void *context)
607607
{
@@ -659,7 +659,7 @@ static void *read_thread(void *param)
659659
/* Now that the read thread is stopping, Wake any threads which are
660660
waiting on data (in hid_read_timeout()). Do this under a mutex to
661661
make sure that a thread which is about to go to sleep waiting on
662-
the condition acutally will go to sleep before the condition is
662+
the condition actually will go to sleep before the condition is
663663
signaled. */
664664
pthread_mutex_lock(&dev->mutex);
665665
pthread_cond_broadcast(&dev->condition);

windows/hid.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ static hid_device *new_hid_device()
155155
dev->read_pending = FALSE;
156156
dev->read_buf = NULL;
157157
memset(&dev->ol, 0, sizeof(dev->ol));
158-
dev->ol.hEvent = CreateEvent(NULL, FALSE, FALSE /*inital state f=nonsignaled*/, NULL);
158+
dev->ol.hEvent = CreateEvent(NULL, FALSE, FALSE /*initial state f=nonsignaled*/, NULL);
159159

160160
return dev;
161161
}

0 commit comments

Comments
 (0)