diff options
author | Michael Dickens <michael.dickens@ettus.com> | 2016-06-24 16:48:12 -0400 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2016-08-01 18:49:53 -0700 |
commit | 3a2d11e53a4d7514440d0a5a2e5fab93a949a21a (patch) | |
tree | 3e40d6ad7b4ef633deb3be0d7c9b2d90ef3150f7 /host/include | |
parent | ef249a8ed92431778642eda5aa65397865b7cae3 (diff) | |
download | uhd-3a2d11e53a4d7514440d0a5a2e5fab93a949a21a.tar.gz uhd-3a2d11e53a4d7514440d0a5a2e5fab93a949a21a.tar.bz2 uhd-3a2d11e53a4d7514440d0a5a2e5fab93a949a21a.zip |
usb: fix interfaces to be type 'int' and endpoints to be type 'unsigned char' to match the libusb API.
Diffstat (limited to 'host/include')
-rw-r--r-- | host/include/uhd/transport/usb_control.hpp | 2 | ||||
-rw-r--r-- | host/include/uhd/transport/usb_zero_copy.hpp | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/host/include/uhd/transport/usb_control.hpp b/host/include/uhd/transport/usb_control.hpp index f23ad5247..786bd0815 100644 --- a/host/include/uhd/transport/usb_control.hpp +++ b/host/include/uhd/transport/usb_control.hpp @@ -36,7 +36,7 @@ public: * \param handle a device handle that uniquely identifies a USB device * \param interface the USB interface number for the control transport */ - static sptr make(usb_device_handle::sptr handle, const size_t interface); + static sptr make(usb_device_handle::sptr handle, const int interface); /*! * Submit a USB device request: diff --git a/host/include/uhd/transport/usb_zero_copy.hpp b/host/include/uhd/transport/usb_zero_copy.hpp index ae1926e1b..eb28040b6 100644 --- a/host/include/uhd/transport/usb_zero_copy.hpp +++ b/host/include/uhd/transport/usb_zero_copy.hpp @@ -55,10 +55,10 @@ public: */ static sptr make( usb_device_handle::sptr handle, - const size_t recv_interface, - const size_t recv_endpoint, - const size_t send_interface, - const size_t send_endpoint, + const int recv_interface, + const unsigned char recv_endpoint, + const int send_interface, + const unsigned char send_endpoint, const device_addr_t &hints = device_addr_t() ); }; |