projects
/
binutils-gdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
65be133
)
Fix exit status.
author
Ian Lance Taylor
<iant@google.com>
Mon, 15 Oct 2007 03:33:03 +0000
(
03:33
+0000)
committer
Ian Lance Taylor
<iant@google.com>
Mon, 15 Oct 2007 03:33:03 +0000
(
03:33
+0000)
gold/options.cc
patch
|
blob
|
history
diff --git
a/gold/options.cc
b/gold/options.cc
index 0458139a59e9761394e320b6dda7751d2b38c236..ef7e411f16471953f779f4b695fda6a921626a07 100644
(file)
--- 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