diff options
author | Moritz Fischer <moritz.fischer@ettus.com> | 2012-10-18 15:33:07 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2012-10-26 14:00:29 -0700 |
commit | 171e46cebe9c661246d6e313a40f38822d90bbb7 (patch) | |
tree | ac9c7486911a22850492219373e6acfdf99e4b2e /host/utils/uhd_find_devices.cpp | |
parent | 99c9949eb1bbc9f33c838b43890754c816a23033 (diff) | |
download | uhd-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/utils/uhd_find_devices.cpp')
-rw-r--r-- | host/utils/uhd_find_devices.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/host/utils/uhd_find_devices.cpp b/host/utils/uhd_find_devices.cpp index b778eeb68..c258c580e 100644 --- a/host/utils/uhd_find_devices.cpp +++ b/host/utils/uhd_find_devices.cpp @@ -20,6 +20,7 @@ #include <boost/program_options.hpp> #include <boost/format.hpp> #include <iostream> +#include <cstdlib> namespace po = boost::program_options; @@ -37,7 +38,7 @@ int UHD_SAFE_MAIN(int argc, char *argv[]){ //print the help message if (vm.count("help")){ std::cout << boost::format("UHD Find Devices %s") % desc << std::endl; - return ~0; + return EXIT_FAILURE; } //discover the usrps and print the results @@ -45,7 +46,7 @@ int UHD_SAFE_MAIN(int argc, char *argv[]){ if (device_addrs.size() == 0){ std::cerr << "No UHD Devices Found" << std::endl; - return ~0; + return EXIT_FAILURE; } for (size_t i = 0; i < device_addrs.size(); i++){ @@ -56,5 +57,5 @@ int UHD_SAFE_MAIN(int argc, char *argv[]){ //uhd::device::make(device_addrs[i]); //test make } - return 0; + return EXIT_SUCCESS; } |