summaryrefslogtreecommitdiff
path: root/gr-uhd/examples/c++
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2015-04-28 14:18:59 -0700
committerMartin Braun <martin.braun@ettus.com>2015-04-28 14:18:59 -0700
commitf8d207029be6c266286ce418f8deb9d48aadd580 (patch)
tree15f096a958db934ce70cafc95ef134e58e71940e /gr-uhd/examples/c++
parent6020965c3900c5c596ac0900604182c8c062a453 (diff)
uhd: Fix for CID 1090026 thru -33
Diffstat (limited to 'gr-uhd/examples/c++')
-rw-r--r--gr-uhd/examples/c++/tags_demo.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/gr-uhd/examples/c++/tags_demo.cc b/gr-uhd/examples/c++/tags_demo.cc
index 787e3d2e4b..42cbb46874 100644
--- a/gr-uhd/examples/c++/tags_demo.cc
+++ b/gr-uhd/examples/c++/tags_demo.cc
@@ -24,6 +24,7 @@
#include <gnuradio/uhd/usrp_sink.h>
#include <tag_source_demo.h>
#include <tag_sink_demo.h>
+#include <uhd/utils/safe_main.hpp>
#include <boost/make_shared.hpp>
#include <boost/thread/thread.hpp> //sleep
#include <boost/program_options.hpp>
@@ -41,7 +42,7 @@ void sig_int_handler(int){stop_signal_called = true;}
/***********************************************************************
* Main w/ program options
**********************************************************************/
-int main(int argc, char *argv[]){
+int UHD_SAFE_MAIN(int argc, char *argv[]){
std::string device_addr, length_tag;
double center_freq, samp_rate, burst_dur, idle_dur;