summaryrefslogtreecommitdiffstats
path: root/process.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-02-12 14:26:02 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-02-12 14:26:02 +0000
commit3f5ea9690c8a1a9c8fb16f6e31c13ef10bede474 (patch)
tree69e5928c85b6bdccf8517330d6986575f9b2dc6a /process.c
parentbeb86bb99c9608c7c706f37b5c0f65f566647644 (diff)
downloadruby-3f5ea9690c8a1a9c8fb16f6e31c13ef10bede474.tar.gz
ruby-3f5ea9690c8a1a9c8fb16f6e31c13ef10bede474.tar.xz
ruby-3f5ea9690c8a1a9c8fb16f6e31c13ef10bede474.zip
* process.c (rb_fork): initialization with dynamic values is not
allowed in C89. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22261 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'process.c')
-rw-r--r--process.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/process.c b/process.c
index 848d94df2..2c9ef5021 100644
--- a/process.c
+++ b/process.c
@@ -2546,7 +2546,9 @@ rb_pid_t
rb_fork(int *status, int (*chfunc)(void*), void *charg, VALUE fds)
{
if (chfunc) {
- struct chfunc_wrapper_t warg = { chfunc, charg };
+ struct chfunc_wrapper_t warg;
+ warg.chfunc = chfunc;
+ warg.arg = charg;
return rb_fork_err(status, chfunc_wrapper, &warg, fds, NULL, 0);
}
else {