aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2007-10-15 03:33:03 +0000
committerIan Lance Taylor <iant@google.com>2007-10-15 03:33:03 +0000
commitcd4662c7e40fd7c9d51526c07f082eaf5c4e62a6 (patch)
treedd126570c01105a1848781316f04319c6c4f5308
parent65be13330d925fb37ae802e1486ec3aeb546b91b (diff)
downloadgdb-cd4662c7e40fd7c9d51526c07f082eaf5c4e62a6.zip
gdb-cd4662c7e40fd7c9d51526c07f082eaf5c4e62a6.tar.gz
gdb-cd4662c7e40fd7c9d51526c07f082eaf5c4e62a6.tar.bz2
Fix exit status.
-rw-r--r--gold/options.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/gold/options.cc b/gold/options.cc
index 0458139..ef7e411 100644
--- a/gold/options.cc
+++ b/gold/options.cc
@@ -215,7 +215,7 @@ help(int, char**, char*, gold::Command_line*)
std::puts(options[i].doc);
}
- ::exit(true);
+ ::exit(0);
return 0;
}
@@ -226,7 +226,7 @@ int
version(int, char**, char* opt, gold::Command_line*)
{
gold::print_version(opt[0] == 'v' && opt[1] == '\0');
- ::exit(true);
+ ::exit(0);
return 0;
}
@@ -767,7 +767,7 @@ Command_line::usage()
fprintf(stderr,
_("%s: use the --help option for usage information\n"),
program_name);
- ::exit(false);
+ ::exit(1);
}
void