summaryrefslogtreecommitdiff
path: root/eval.c
diff options
context:
space:
mode:
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/eval.c b/eval.c
index de615d29a5..d2963dfd10 100644
--- a/eval.c
+++ b/eval.c
@@ -1309,8 +1309,8 @@ ruby_options(argc, argv)
void rb_exec_end_proc _((void));
static int
-ruby_finalize_0(exp)
- int exp;
+ruby_finalize_0(ex)
+ int ex;
{
ruby_errinfo = 0;
PUSH_TAG(PROT_NONE);
@@ -1326,7 +1326,7 @@ ruby_finalize_0(exp)
VALUE st = rb_iv_get(ruby_errinfo, "status");
return NUM2INT(st);
}
- return EXIT_SUCCESS;
+ return ex;
}
void