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/fx2_init_eeprom.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/fx2_init_eeprom.cpp')
-rw-r--r-- | host/utils/fx2_init_eeprom.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/host/utils/fx2_init_eeprom.cpp b/host/utils/fx2_init_eeprom.cpp index c210ae575..701092a5d 100644 --- a/host/utils/fx2_init_eeprom.cpp +++ b/host/utils/fx2_init_eeprom.cpp @@ -41,12 +41,12 @@ int UHD_SAFE_MAIN(int argc, char *argv[]){ po::variables_map vm; po::store(po::parse_command_line(argc, argv, desc), vm); - po::notify(vm); + po::notify(vm); //print the help message if (vm.count("help")){ std::cout << boost::format("USRP EEPROM initialization %s") % desc << std::endl; - return ~0; + return EXIT_FAILURE; } //cant find a uninitialized usrp with this mystery module in the way... @@ -76,7 +76,7 @@ int UHD_SAFE_MAIN(int argc, char *argv[]){ if (found_addrs.size() == 0){ std::cerr << "No USRP devices found" << std::endl; - return ~0; + return EXIT_FAILURE; } for (size_t i = 0; i < found_addrs.size(); i++){ @@ -89,5 +89,5 @@ int UHD_SAFE_MAIN(int argc, char *argv[]){ std::cout << "Power-cycle the usrp for the changes to take effect." << std::endl; - return 0; + return EXIT_SUCCESS; } |