diff options
author | Mark Seaborn <mseaborn@chromium.org> | 2013-04-01 09:36:55 -0700 |
---|---|---|
committer | Mark Seaborn <mseaborn@chromium.org> | 2013-04-01 09:36:55 -0700 |
commit | 0cc2cde9fbf07bafbd58ce0dd9c9b73bdecd224f (patch) | |
tree | 1a5800a5c4b6e024e8191ed53d7590ea009d47bf | |
parent | a6c4b28460c42bc9fbbdcefffb4aed603f07f068 (diff) |
pnacl-abicheck: Fix exit status so that 256 errors aren't reported as success
Avoid truncation problems. On Unix, exit(256) is equivalent to exit(0).
BUG=https://code.google.com/p/nativeclient/issues/detail?id=2309
TEST=none
Review URL: https://codereview.chromium.org/13375007
-rw-r--r-- | tools/pnacl-abicheck/pnacl-abicheck.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/pnacl-abicheck/pnacl-abicheck.cpp b/tools/pnacl-abicheck/pnacl-abicheck.cpp index 8fdc545afb..e8fce66acd 100644 --- a/tools/pnacl-abicheck/pnacl-abicheck.cpp +++ b/tools/pnacl-abicheck/pnacl-abicheck.cpp @@ -70,5 +70,5 @@ int main(int argc, char **argv) { "Function " + MI->getName()); } - return ErrorsFound; + return ErrorsFound ? 1 : 0; } |