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/usrp_n2xx_simple_net_burner.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/usrp_n2xx_simple_net_burner.cpp')
-rw-r--r-- | host/utils/usrp_n2xx_simple_net_burner.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/host/utils/usrp_n2xx_simple_net_burner.cpp b/host/utils/usrp_n2xx_simple_net_burner.cpp index abbbf37da..2f592adfc 100644 --- a/host/utils/usrp_n2xx_simple_net_burner.cpp +++ b/host/utils/usrp_n2xx_simple_net_burner.cpp @@ -365,7 +365,7 @@ int UHD_SAFE_MAIN(int argc, char *argv[]){ std::cout << boost::format("Automatically detects and burns standard firmware and FPGA images onto USRP N2XX devices.\n"); std::cout << boost::format("Can optionally take user input for custom images.\n\n"); std::cout << desc << std::endl; - return ~0; + return EXIT_FAILURE; } bool burn_fpga = (vm.count("no_fpga") == 0); @@ -376,7 +376,7 @@ int UHD_SAFE_MAIN(int argc, char *argv[]){ if(!burn_fpga && !burn_fw){ std::cout << "No images will be burned." << std::endl; - return ~0; + return EXIT_FAILURE; } if(!burn_fw && use_custom_fw) std::cout << boost::format("Conflicting firmware options presented. Will not burn a firmware image.\n\n"); @@ -418,7 +418,7 @@ int UHD_SAFE_MAIN(int argc, char *argv[]){ } } - return ~0; + return EXIT_FAILURE; } std::cout << boost::format("Searching for USRP N2XX with IP address %s.\n") % ip_addr; @@ -512,7 +512,7 @@ int UHD_SAFE_MAIN(int argc, char *argv[]){ } std::cout << std::endl; //Formatting if(reset) reset_usrp(udp_transport); - else return 0; + else return EXIT_SUCCESS; - return 0; + return EXIT_SUCCESS; } |