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/lib/transport/libusb1_control.cpp | |
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/lib/transport/libusb1_control.cpp')
-rw-r--r-- | host/lib/transport/libusb1_control.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/host/lib/transport/libusb1_control.cpp b/host/lib/transport/libusb1_control.cpp index dfe787726..699581839 100644 --- a/host/lib/transport/libusb1_control.cpp +++ b/host/lib/transport/libusb1_control.cpp @@ -30,7 +30,7 @@ usb_control::~usb_control(void){ **********************************************************************/ class libusb_control_impl : public usb_control { public: - libusb_control_impl(libusb::device_handle::sptr handle, const size_t interface): + libusb_control_impl(libusb::device_handle::sptr handle, const int interface): _handle(handle) { _handle->claim_interface(interface); @@ -63,7 +63,7 @@ private: /*********************************************************************** * USB control public make functions **********************************************************************/ -usb_control::sptr usb_control::make(usb_device_handle::sptr handle, const size_t interface){ +usb_control::sptr usb_control::make(usb_device_handle::sptr handle, const int interface){ return sptr(new libusb_control_impl(libusb::device_handle::get_cached_handle( boost::static_pointer_cast<libusb::special_handle>(handle)->get_device() ), interface)); |