From 171e46cebe9c661246d6e313a40f38822d90bbb7 Mon Sep 17 00:00:00 2001 From: Moritz Fischer Date: Thu, 18 Oct 2012 15:33:07 -0700 Subject: examples & utils: return EXIT_FAILURE and EXIT_SUCCESS respectively instead of 0 and 1. --- host/utils/usrp_n2xx_simple_net_burner.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'host/utils/usrp_n2xx_simple_net_burner.cpp') 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; } -- cgit v1.2.3