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_zero_copy.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_zero_copy.cpp')
-rw-r--r-- | host/lib/transport/libusb1_zero_copy.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/host/lib/transport/libusb1_zero_copy.cpp b/host/lib/transport/libusb1_zero_copy.cpp index 53e345009..d2c7d2160 100644 --- a/host/lib/transport/libusb1_zero_copy.cpp +++ b/host/lib/transport/libusb1_zero_copy.cpp @@ -197,7 +197,7 @@ class libusb_zero_copy_single public: libusb_zero_copy_single( libusb::device_handle::sptr handle, - const size_t interface, const size_t endpoint, + const int interface, const unsigned char endpoint, const size_t num_frames, const size_t frame_size ): _handle(handle), @@ -372,10 +372,10 @@ struct libusb_zero_copy_impl : usb_zero_copy { libusb_zero_copy_impl( libusb::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 ){ _recv_impl.reset(new libusb_zero_copy_single( @@ -415,10 +415,10 @@ struct libusb_zero_copy_impl : usb_zero_copy **********************************************************************/ usb_zero_copy::sptr usb_zero_copy::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 ){ libusb::device_handle::sptr dev_handle(libusb::device_handle::get_cached_handle( |