aboutsummaryrefslogtreecommitdiffstats
path: root/host/examples/network_relay.cpp
diff options
context:
space:
mode:
authorMoritz Fischer <moritz.fischer@ettus.com>2012-10-18 15:33:07 -0700
committerJosh Blum <josh@joshknows.com>2012-10-26 14:00:29 -0700
commit171e46cebe9c661246d6e313a40f38822d90bbb7 (patch)
treeac9c7486911a22850492219373e6acfdf99e4b2e /host/examples/network_relay.cpp
parent99c9949eb1bbc9f33c838b43890754c816a23033 (diff)
downloaduhd-171e46cebe9c661246d6e313a40f38822d90bbb7.tar.gz
uhd-171e46cebe9c661246d6e313a40f38822d90bbb7.tar.bz2
uhd-171e46cebe9c661246d6e313a40f38822d90bbb7.zip
examples & utils: return EXIT_FAILURE and EXIT_SUCCESS respectively
instead of 0 and 1.
Diffstat (limited to 'host/examples/network_relay.cpp')
-rw-r--r--host/examples/network_relay.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/host/examples/network_relay.cpp b/host/examples/network_relay.cpp
index e8f9e667f..bb09296b3 100644
--- a/host/examples/network_relay.cpp
+++ b/host/examples/network_relay.cpp
@@ -24,6 +24,7 @@
#include <iostream>
#include <csignal>
#include <vector>
+#include <cstdlib>
namespace po = boost::program_options;
namespace asio = boost::asio;
@@ -202,7 +203,7 @@ int UHD_SAFE_MAIN(int argc, char *argv[]){
<< "Runs a network relay between UHD on one computer and a USRP on the network.\n"
<< "This example is basically for test purposes. Use at your own convenience.\n"
<< std::endl;
- return ~0;
+ return EXIT_FAILURE;
}
{
@@ -223,5 +224,5 @@ int UHD_SAFE_MAIN(int argc, char *argv[]){
//finished
std::cout << std::endl << "Done!" << std::endl << std::endl;
- return 0;
+ return EXIT_SUCCESS;
}