aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/b100/usb_zero_copy_wrapper.cpp
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2016-10-31 14:30:52 -0700
committerMartin Braun <martin.braun@ettus.com>2016-11-08 08:02:22 -0800
commit99c2730bc9db270560671f2d7d173768465ed51f (patch)
treebc4df495734a075ebe2f7917cf67dec6fb7d8177 /host/lib/usrp/b100/usb_zero_copy_wrapper.cpp
parent218f4b0b63927110df9dbbaa8353c346eee2d98a (diff)
downloaduhd-99c2730bc9db270560671f2d7d173768465ed51f.tar.gz
uhd-99c2730bc9db270560671f2d7d173768465ed51f.tar.bz2
uhd-99c2730bc9db270560671f2d7d173768465ed51f.zip
Remove all boost:: namespace prefix for uint32_t, int32_t etc. (fixed-width types)
- Also removes all references to boost/cstdint.hpp and replaces it with stdint.h (The 'correct' replacement would be <cstdint>, but not all of our compilers support that).
Diffstat (limited to 'host/lib/usrp/b100/usb_zero_copy_wrapper.cpp')
-rw-r--r--host/lib/usrp/b100/usb_zero_copy_wrapper.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/host/lib/usrp/b100/usb_zero_copy_wrapper.cpp b/host/lib/usrp/b100/usb_zero_copy_wrapper.cpp
index d646fcc94..d57d57f21 100644
--- a/host/lib/usrp/b100/usb_zero_copy_wrapper.cpp
+++ b/host/lib/usrp/b100/usb_zero_copy_wrapper.cpp
@@ -60,9 +60,9 @@ public:
//extract this packet's memory address and length in bytes
char *mem = mrb->cast<char *>() + offset_bytes;
- const boost::uint32_t *mem32 = reinterpret_cast<const boost::uint32_t *>(mem);
+ const uint32_t *mem32 = reinterpret_cast<const uint32_t *>(mem);
const size_t words32 = (uhd::wtohx(mem32[0]) & 0xffff); //length in words32 (from VRT header)
- const size_t len = words32*sizeof(boost::uint32_t); //length in bytes
+ const size_t len = words32*sizeof(uint32_t); //length in bytes
//check if this receive buffer has been exhausted
offset_bytes += len;
@@ -100,7 +100,7 @@ public:
_ok_to_auto_flush = true;
//get a reference to the VITA header before incrementing
- const boost::uint32_t vita_header = reinterpret_cast<const boost::uint32_t *>(_mem_buffer_tip)[0];
+ const uint32_t vita_header = reinterpret_cast<const uint32_t *>(_mem_buffer_tip)[0];
_bytes_in_buffer += size();
_mem_buffer_tip += size();