aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/gpsd_iface.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/gpsd_iface.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/gpsd_iface.cpp')
-rw-r--r--host/lib/usrp/gpsd_iface.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/host/lib/usrp/gpsd_iface.cpp b/host/lib/usrp/gpsd_iface.cpp
index cd7e5601a..98b359135 100644
--- a/host/lib/usrp/gpsd_iface.cpp
+++ b/host/lib/usrp/gpsd_iface.cpp
@@ -21,7 +21,7 @@
#include <boost/assign/list_of.hpp>
#include <boost/bind.hpp>
-#include <boost/cstdint.hpp>
+#include <stdint.h>
#include "boost/date_time/gregorian/gregorian.hpp"
#include <boost/format.hpp>
#include <boost/lexical_cast.hpp>
@@ -43,7 +43,7 @@ static const size_t CLICK_RATE = 250000;
class gpsd_iface_impl : public virtual gpsd_iface {
public:
- gpsd_iface_impl(const std::string &addr, boost::uint16_t port)
+ gpsd_iface_impl(const std::string &addr, uint16_t port)
: _detected(false), _bthread(), _timeout_cnt(0)
{
boost::unique_lock<boost::shared_mutex> l(_d_mutex);
@@ -182,9 +182,9 @@ private: // member functions
if ((s.at(0) != '$'))
return 0;
- boost::uint8_t sum = '\0';
+ uint8_t sum = '\0';
for (size_t i = 1; i < s.size(); i++)
- sum ^= static_cast<boost::uint8_t>(s.at(i));
+ sum ^= static_cast<uint8_t>(s.at(i));
return sum;
}
@@ -303,7 +303,7 @@ private: // members
using namespace uhd::usrp;
-gpsd_iface::sptr gpsd_iface::make(const std::string &addr, const boost::uint16_t port)
+gpsd_iface::sptr gpsd_iface::make(const std::string &addr, const uint16_t port)
{
return gpsd_iface::sptr(new gpsd_iface_impl(addr, port));
}