summaryrefslogtreecommitdiffstats
path: root/cooling-type/argument.cpp
diff options
context:
space:
mode:
authorWilliam A. Kennington III <wak@google.com>2018-10-19 17:18:34 -0700
committerWilliam A. Kennington III <wak@google.com>2018-10-19 17:26:03 -0700
commit3e781064f534ae0c822ac4c4f5590635633aa394 (patch)
tree675226520152cb0f58c1334a42ddfcec3c1d3c22 /cooling-type/argument.cpp
parentb884821df59d8f477d715f326caf74790647dede (diff)
downloadphosphor-fan-presence-3e781064f534ae0c822ac4c4f5590635633aa394.tar.gz
phosphor-fan-presence-3e781064f534ae0c822ac4c4f5590635633aa394.zip
Fix exit status codes
Using an exit status of -1 everywhere leads to the status being converted to 255 when output to a calling application. While this does signify an error it has a reserved meaning for exit status out of range. Lets use a valid general exit status of 1 instead. Change-Id: I326701c78985e34c430c258fe31d9e910da10405 Signed-off-by: William A. Kennington III <wak@google.com>
Diffstat (limited to 'cooling-type/argument.cpp')
-rw-r--r--cooling-type/argument.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/cooling-type/argument.cpp b/cooling-type/argument.cpp
index 2c9a580..2c54f75 100644
--- a/cooling-type/argument.cpp
+++ b/cooling-type/argument.cpp
@@ -34,7 +34,7 @@ ArgumentParser::ArgumentParser(int argc, char** argv)
if ((option == '?') || (option == 'h'))
{
usage(argv);
- exit(-1);
+ exit(1);
}
auto i = &options[0];
OpenPOWER on IntegriCloud