summaryrefslogtreecommitdiffstats
path: root/host/examples
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2012-02-09 17:59:48 -0800
committerJosh Blum <josh@joshknows.com>2012-02-09 17:59:48 -0800
commit115100034071b3b58de1fce7c795995f6ee615a1 (patch)
tree48909ad3435835d0ec70631faf252285368c8b41 /host/examples
parentb6da2fe9af84663fa4dda923833e2319433b6f20 (diff)
downloaduhd-115100034071b3b58de1fce7c795995f6ee615a1.tar.gz
uhd-115100034071b3b58de1fce7c795995f6ee615a1.tar.bz2
uhd-115100034071b3b58de1fce7c795995f6ee615a1.zip
uhd: various tweaks for compiler warns and valgrind
Diffstat (limited to 'host/examples')
-rw-r--r--host/examples/test_messages.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/host/examples/test_messages.cpp b/host/examples/test_messages.cpp
index f24a172d1..afb092092 100644
--- a/host/examples/test_messages.cpp
+++ b/host/examples/test_messages.cpp
@@ -26,6 +26,7 @@
#include <boost/bind.hpp>
#include <boost/format.hpp>
#include <cstdlib>
+#include <ctime>
#include <complex>
#include <iostream>
@@ -326,7 +327,7 @@ int UHD_SAFE_MAIN(int argc, char *argv[]){
}
//run the tests, pick at random
- std::srand(uhd::time_spec_t::get_system_time().get_full_secs());
+ std::srand((unsigned int) time(NULL));
for (size_t n = 0; n < ntests; n++){
std::string key = tests.keys()[std::rand() % tests.size()];
bool pass = tests[key](usrp, rx_stream, tx_stream);