diff options
| author | Michael Dickens <michael.dickens@ettus.com> | 2015-04-20 14:32:28 -0400 | 
|---|---|---|
| committer | Martin Braun <martin.braun@ettus.com> | 2015-04-20 15:24:12 -0700 | 
| commit | eacd36d94d8d9432c09a8ab79884845efeb5fd4b (patch) | |
| tree | dde8550ca300c4c6688d412e030e837084001049 /host/lib/usrp/b200 | |
| parent | 14d2555d832f68243d5c810ba76f8f0823a3198c (diff) | |
| download | uhd-eacd36d94d8d9432c09a8ab79884845efeb5fd4b.tar.gz uhd-eacd36d94d8d9432c09a8ab79884845efeb5fd4b.tar.bz2 uhd-eacd36d94d8d9432c09a8ab79884845efeb5fd4b.zip  | |
b200: Boost 1.58-related fixes in B200 IO code.
When returning an invalid payload in handle_async_task, Boost 1.58
does not allow NULL to be returned; instead, to be more compatible,
use the correct type initialized to (0, []).
Diffstat (limited to 'host/lib/usrp/b200')
| -rw-r--r-- | host/lib/usrp/b200/b200_io_impl.cpp | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/host/lib/usrp/b200/b200_io_impl.cpp b/host/lib/usrp/b200/b200_io_impl.cpp index cf5ba7a11..3e156f9bb 100644 --- a/host/lib/usrp/b200/b200_io_impl.cpp +++ b/host/lib/usrp/b200/b200_io_impl.cpp @@ -194,7 +194,7 @@ boost::optional<uhd::msg_task::msg_type_t> b200_impl::handle_async_task(  {      managed_recv_buffer::sptr buff = xport->get_recv_buff();      if (not buff or buff->size() < 8) -        return NULL; +        return uhd::msg_task::msg_type_t(0, uhd::msg_task::msg_payload_t());      const boost::uint32_t sid = uhd::wtohx(buff->cast<const boost::uint32_t *>()[1]);      switch (sid) { @@ -258,7 +258,7 @@ boost::optional<uhd::msg_task::msg_type_t> b200_impl::handle_async_task(      default:          UHD_MSG(error) << "Got a ctrl packet with unknown SID " << sid << std::endl;      } -    return NULL; +    return uhd::msg_task::msg_type_t(0, uhd::msg_task::msg_payload_t());  }  /***********************************************************************  | 
