aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/usrp1/io_impl.cpp
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2011-02-07 12:32:12 -0800
committerJosh Blum <josh@joshknows.com>2011-02-07 12:32:12 -0800
commitef351624eeb898e17662000a40b50076133118c7 (patch)
tree841cc50addc98183bf4b6a35dbe2b5375d08cc6c /host/lib/usrp/usrp1/io_impl.cpp
parentfec5fc2d319ab2808f88d2f4cec734a8102f18ca (diff)
downloaduhd-ef351624eeb898e17662000a40b50076133118c7.tar.gz
uhd-ef351624eeb898e17662000a40b50076133118c7.tar.bz2
uhd-ef351624eeb898e17662000a40b50076133118c7.zip
uhd: replace asio buffer in make safe w/ memory and length, makes things simpler
Diffstat (limited to 'host/lib/usrp/usrp1/io_impl.cpp')
-rw-r--r--host/lib/usrp/usrp1/io_impl.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/host/lib/usrp/usrp1/io_impl.cpp b/host/lib/usrp/usrp1/io_impl.cpp
index 52a7c6650..7953447d1 100644
--- a/host/lib/usrp/usrp1/io_impl.cpp
+++ b/host/lib/usrp/usrp1/io_impl.cpp
@@ -159,10 +159,8 @@ bool usrp1_impl::io_impl::get_send_buffs(
//calculate the buffer pointer and size given the offset
//references to the buffers are held in the bound function
buffs[0] = managed_send_buffer::make_safe(
- boost::asio::buffer(
- curr_buff->buff->cast<char *>() + curr_buff->offset,
- curr_buff->buff->size() - curr_buff->offset
- ),
+ curr_buff->buff->cast<char *>() + curr_buff->offset,
+ curr_buff->buff->size() - curr_buff->offset,
boost::bind(&usrp1_impl::io_impl::commit_send_buff, this, curr_buff, next_buff, _1)
);