Skip to content

Commit

Permalink
all: Fix a few typos
Browse files Browse the repository at this point in the history
  • Loading branch information
diegoherranz authored and signal11 committed Sep 20, 2016
1 parent 1f615ef commit a6a622f
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions libusb/hid.c
Expand Up @@ -316,7 +316,7 @@ static int get_usage(uint8_t *report_descriptor, size_t size,
#if defined(__FreeBSD__) && __FreeBSD__ < 10
/* The libusb version included in FreeBSD < 10 doesn't have this function. In
mainline libusb, it's inlined in libusb.h. This function will bear a striking
resemblence to that one, because there's about one way to code it.
resemblance to that one, because there's about one way to code it.
Note that the data parameter is Unicode in UTF-16LE encoding.
Return value is the number of bytes in data, or LIBUSB_ERROR_*.
Expand Down Expand Up @@ -849,7 +849,7 @@ static void *read_thread(void *param)
/* Now that the read thread is stopping, Wake any threads which are
waiting on data (in hid_read_timeout()). Do this under a mutex to
make sure that a thread which is about to go to sleep waiting on
the condition acutally will go to sleep before the condition is
the condition actually will go to sleep before the condition is
signaled. */
pthread_mutex_lock(&dev->mutex);
pthread_cond_broadcast(&dev->condition);
Expand Down Expand Up @@ -958,7 +958,7 @@ hid_device * HID_API_EXPORT hid_open_path(const char *path)
(ep->bEndpointAddress & LIBUSB_ENDPOINT_DIR_MASK)
== LIBUSB_ENDPOINT_IN;

/* Decide whether to use it for intput or output. */
/* Decide whether to use it for input or output. */
if (dev->input_endpoint == 0 &&
is_interrupt && is_input) {
/* Use this endpoint for INPUT */
Expand Down Expand Up @@ -1014,7 +1014,7 @@ int HID_API_EXPORT hid_write(hid_device *dev, const unsigned char *data, size_t


if (dev->output_endpoint <= 0) {
/* No interrput out endpoint. Use the Control Endpoint */
/* No interrupt out endpoint. Use the Control Endpoint */
res = libusb_control_transfer(dev->device_handle,
LIBUSB_REQUEST_TYPE_CLASS|LIBUSB_RECIPIENT_INTERFACE|LIBUSB_ENDPOINT_OUT,
0x09/*HID Set_Report*/,
Expand Down
2 changes: 1 addition & 1 deletion linux/README.txt
Expand Up @@ -16,7 +16,7 @@ application and build using the build parameters in the Makefile.
Libusb Implementation notes
----------------------------
For the libusb implementation, libusb-1.0 must be installed. Libusb 1.0 is
different than the legacy libusb 0.1 which is installed on many systems. To
different than the legacy libusb 0.1 which is installed on many systems. To
install libusb-1.0 on Ubuntu and other Debian-based systems, run:
sudo apt-get install libusb-1.0-0-dev

Expand Down
4 changes: 2 additions & 2 deletions mac/hid.c
Expand Up @@ -601,7 +601,7 @@ static void hid_report_callback(void *context, IOReturn result, void *sender,

}

/* This gets called when the read_thred's run loop gets signaled by
/* This gets called when the read_thread's run loop gets signaled by
hid_close(), and serves to stop the read_thread's run loop. */
static void perform_signal_callback(void *context)
{
Expand Down Expand Up @@ -659,7 +659,7 @@ static void *read_thread(void *param)
/* Now that the read thread is stopping, Wake any threads which are
waiting on data (in hid_read_timeout()). Do this under a mutex to
make sure that a thread which is about to go to sleep waiting on
the condition acutally will go to sleep before the condition is
the condition actually will go to sleep before the condition is
signaled. */
pthread_mutex_lock(&dev->mutex);
pthread_cond_broadcast(&dev->condition);
Expand Down
2 changes: 1 addition & 1 deletion windows/hid.c
Expand Up @@ -155,7 +155,7 @@ static hid_device *new_hid_device()
dev->read_pending = FALSE;
dev->read_buf = NULL;
memset(&dev->ol, 0, sizeof(dev->ol));
dev->ol.hEvent = CreateEvent(NULL, FALSE, FALSE /*inital state f=nonsignaled*/, NULL);
dev->ol.hEvent = CreateEvent(NULL, FALSE, FALSE /*initial state f=nonsignaled*/, NULL);

return dev;
}
Expand Down

0 comments on commit a6a622f

Please sign in to comment.