summaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2017-07-20 23:33:43 -0400
committerTavian Barnes <tavianator@tavianator.com>2017-07-20 23:33:43 -0400
commit4242283189a94a79dda78540efe78b2666a944cc (patch)
tree831d2e27413db667239c8f60fad64d447026dd44 /main.c
parent03adbcf0aa8914fd5556b7913901c98a6940fae4 (diff)
downloadbfs-4242283189a94a79dda78540efe78b2666a944cc.tar.xz
Implement -exit [STATUS]
From NetBSD again.
Diffstat (limited to 'main.c')
-rw-r--r--main.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/main.c b/main.c
index 0b957d3..f925915 100644
--- a/main.c
+++ b/main.c
@@ -48,9 +48,7 @@ int main(int argc, char *argv[]) {
struct cmdline *cmdline = parse_cmdline(argc, argv);
if (cmdline) {
- if (eval_cmdline(cmdline) == 0) {
- ret = EXIT_SUCCESS;
- }
+ ret = eval_cmdline(cmdline);
}
free_cmdline(cmdline);