Skip to content

Commit

Permalink
linux: ioctl() request number is unsigned long
Browse files Browse the repository at this point in the history
The type mismatch was caught by building with -Wconversion.

References #1497

Signed-off-by: Tormod Volden <[email protected]>
  • Loading branch information
tormodvolden committed May 26, 2024
1 parent 8b50743 commit 42e8a9f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions libusb/os/linux_usbfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -1628,8 +1628,9 @@ static int op_reset_device(struct libusb_device_handle *handle)
return ret;
}

static int do_streams_ioctl(struct libusb_device_handle *handle, long req,
uint32_t num_streams, unsigned char *endpoints, int num_endpoints)
static int do_streams_ioctl(struct libusb_device_handle *handle,
unsigned long req, uint32_t num_streams, unsigned char *endpoints,
int num_endpoints)
{
struct linux_device_handle_priv *hpriv = usbi_get_device_handle_priv(handle);
int r, fd = hpriv->fd;
Expand Down
2 changes: 1 addition & 1 deletion libusb/version_nano.h
Original file line number Diff line number Diff line change
@@ -1 +1 @@
#define LIBUSB_NANO 11901
#define LIBUSB_NANO 11902

0 comments on commit 42e8a9f

Please sign in to comment.