diff options
author | Josh Blum <josh@joshknows.com> | 2010-07-09 20:09:45 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-07-09 20:09:45 -0700 |
commit | c898ca9751d1b274ae8f8f7afc2d5bc54b6ef30c (patch) | |
tree | 68608f738c82c43ba0ace42089011f51723afdd8 /host/lib/usrp/usrp2 | |
parent | 75537e896bbd0aeb8d988b6ad33b5ab2d35b316f (diff) | |
download | uhd-c898ca9751d1b274ae8f8f7afc2d5bc54b6ef30c.tar.gz uhd-c898ca9751d1b274ae8f8f7afc2d5bc54b6ef30c.tar.bz2 uhd-c898ca9751d1b274ae8f8f7afc2d5bc54b6ef30c.zip |
uhd: ssize_t for phony zero copy return types, null sptr for timeout/error with get managed buffers
Diffstat (limited to 'host/lib/usrp/usrp2')
-rw-r--r-- | host/lib/usrp/usrp2/io_impl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/host/lib/usrp/usrp2/io_impl.cpp b/host/lib/usrp/usrp2/io_impl.cpp index 0853f48be..7e231095f 100644 --- a/host/lib/usrp/usrp2/io_impl.cpp +++ b/host/lib/usrp/usrp2/io_impl.cpp @@ -85,7 +85,7 @@ void usrp2_impl::io_impl::recv_pirate_loop( recv_pirate_crew_raiding = true; while(recv_pirate_crew_raiding){ managed_recv_buffer::sptr buff = zc_if->get_recv_buff(); - if (buff->size() == 0) continue; //ignore timeout buffers + if (not buff.get()) continue; //ignore timeout/error buffers try{ //extract the vrt header packet info |