diff options
author | shyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-07-01 08:31:55 +0000 |
---|---|---|
committer | shyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-07-01 08:31:55 +0000 |
commit | ddc5f561e7df66a8f50df81686586f1e1c6b2c72 (patch) | |
tree | 7bbe16a3210f1f6f2624705ef938acdb0788d44d /process.c | |
parent | 3e69e83a62be745e1ace41cb0293ec0692baaeb6 (diff) | |
download | ruby-ddc5f561e7df66a8f50df81686586f1e1c6b2c72.tar.gz |
* process.c (run_exec_rlimit): ISO C90 forbids mixed declarations
and code
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17767 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'process.c')
-rw-r--r-- | process.c | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -2052,12 +2052,13 @@ run_exec_rlimit(VALUE ary, VALUE save) int rtype = NUM2INT(RARRAY_PTR(elt)[0]); struct rlimit rlim; if (!NIL_P(save)) { + VALUE tmp, newary; if (getrlimit(rtype, &rlim) == -1) return -1; - VALUE tmp = hide_obj(rb_ary_new3(3, RARRAY_PTR(elt)[0], - RLIM2NUM(rlim.rlim_cur), - RLIM2NUM(rlim.rlim_max))); - VALUE newary = rb_ary_entry(save, EXEC_OPTION_RLIMIT); + tmp = hide_obj(rb_ary_new3(3, RARRAY_PTR(elt)[0], + RLIM2NUM(rlim.rlim_cur), + RLIM2NUM(rlim.rlim_max))); + newary = rb_ary_entry(save, EXEC_OPTION_RLIMIT); if (NIL_P(newary)) { newary = hide_obj(rb_ary_new()); rb_ary_store(save, EXEC_OPTION_RLIMIT, newary); |