diff options
author | Josh Blum <josh@joshknows.com> | 2011-03-21 10:34:16 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2011-03-21 10:34:16 -0700 |
commit | fb2059949e0ad898e745aafbe958dfb2f326b077 (patch) | |
tree | d996220366d3ff94765adacce7996e0e06a7219a /host | |
parent | 7a949ffd2be87c0bbf5f733e71dbe81d565f0444 (diff) | |
download | uhd-fb2059949e0ad898e745aafbe958dfb2f326b077.tar.gz uhd-fb2059949e0ad898e745aafbe958dfb2f326b077.tar.bz2 uhd-fb2059949e0ad898e745aafbe958dfb2f326b077.zip |
usb: fix callback cast in libusb zero copy under msvc
Diffstat (limited to 'host')
-rw-r--r-- | host/lib/transport/libusb1_zero_copy.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/host/lib/transport/libusb1_zero_copy.cpp b/host/lib/transport/libusb1_zero_copy.cpp index 697944089..9f38ce97b 100644 --- a/host/lib/transport/libusb1_zero_copy.cpp +++ b/host/lib/transport/libusb1_zero_copy.cpp @@ -199,7 +199,7 @@ public: ~libusb_zero_copy_impl(void){ //cancel and free all transfers BOOST_FOREACH(libusb_transfer *lut, _all_luts){ - lut->callback = &cancel_transfer_cb; + lut->callback = libusb_transfer_cb_fn(&cancel_transfer_cb); libusb_cancel_transfer(lut); while(lut->status != LIBUSB_TRANSFER_CANCELLED && lut->status != LIBUSB_TRANSFER_COMPLETED) { boost::this_thread::sleep(boost::posix_time::milliseconds(10)); |