From 99c2730bc9db270560671f2d7d173768465ed51f Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Mon, 31 Oct 2016 14:30:52 -0700 Subject: 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 , but not all of our compilers support that). --- host/lib/usrp/gpsd_iface.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'host/lib/usrp/gpsd_iface.cpp') 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 #include -#include +#include #include "boost/date_time/gregorian/gregorian.hpp" #include #include @@ -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 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(s.at(i)); + sum ^= static_cast(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)); } -- cgit v1.2.3