From c898ca9751d1b274ae8f8f7afc2d5bc54b6ef30c Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Fri, 9 Jul 2010 20:09:45 -0700 Subject: uhd: ssize_t for phony zero copy return types, null sptr for timeout/error with get managed buffers --- host/lib/usrp/usrp2/io_impl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'host/lib/usrp') 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 -- cgit v1.2.3