aboutsummaryrefslogtreecommitdiffstats
path: root/host/examples
diff options
context:
space:
mode:
authorMichael Dickens <michael.dickens@ettus.com>2015-03-07 11:12:58 -0500
committerMartin Braun <martin.braun@ettus.com>2015-03-11 15:33:17 -0700
commita7049e4ff79cdc205db76bf7270219f254073961 (patch)
treed8dd37ecfaa3719a82c5aa3ce56f0d04faae01ef /host/examples
parenta4eee83b82a5f57b22c092e5f9dc825baf8fe6dd (diff)
downloaduhd-a7049e4ff79cdc205db76bf7270219f254073961.tar.gz
uhd-a7049e4ff79cdc205db76bf7270219f254073961.tar.bz2
uhd-a7049e4ff79cdc205db76bf7270219f254073961.zip
uhd: Fixed multiple compiler warnings
- Use ULL and LL etc. so compiler doesn't need to decide constant's types - define the empty 'while' loop to include {} to make older compilers happy - Use explicit type names for BOOST_CHECK_EQUAL
Diffstat (limited to 'host/examples')
-rw-r--r--host/examples/test_clock_synch.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/host/examples/test_clock_synch.cpp b/host/examples/test_clock_synch.cpp
index 7a4226345..50a1444f8 100644
--- a/host/examples/test_clock_synch.cpp
+++ b/host/examples/test_clock_synch.cpp
@@ -35,14 +35,14 @@ using namespace uhd::usrp_clock;
using namespace uhd::usrp;
void wait_for_pps(multi_usrp::sptr usrp, size_t chan, double timeout){
- boost::uint32_t last_pps_time = usrp->get_time_last_pps(chan).get_full_secs();
- boost::uint32_t system_time = uhd::time_spec_t::get_system_time().get_full_secs();
- boost::uint32_t exit_time = system_time + timeout;
+ time_t last_pps_time = usrp->get_time_last_pps(chan).get_full_secs();
+ time_t system_time = uhd::time_spec_t::get_system_time().get_full_secs();
+ time_t exit_time = system_time + timeout;
bool detected_pps = false;
//Otherwise, this would hang if the USRP doesn't detect any PPS
while(uhd::time_spec_t::get_system_time().get_full_secs() < exit_time){
- boost::uint32_t time_now = usrp->get_time_last_pps(chan).get_full_secs();
+ time_t time_now = usrp->get_time_last_pps(chan).get_full_secs();
if(last_pps_time < time_now){
detected_pps = true;
break;