summaryrefslogtreecommitdiff
path: root/process.c
diff options
context:
space:
mode:
authornormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-12-03 08:57:15 +0000
committernormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-12-03 08:57:15 +0000
commit323ddfc168e00ab17738a08f9a91c8b02dd8e6c3 (patch)
tree6f579a4b0fa1e54e2a82539e1f40116cc1a14dce /process.c
parent4d1e32eac67cf5febd20461987259519089e1890 (diff)
downloadruby-323ddfc168e00ab17738a08f9a91c8b02dd8e6c3.tar.gz
process.c (rb_f_system): cleanup to use rb_execarg_get
TypedData_* macros hide assignments and are confusing and too long for users of giant fonts. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66156 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'process.c')
-rw-r--r--process.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/process.c b/process.c
index 56a90e770b..5ad01c952a 100644
--- a/process.c
+++ b/process.c
@@ -4445,7 +4445,7 @@ rb_f_system(int argc, VALUE *argv)
int exec_errnum;
execarg_obj = rb_execarg_new(argc, argv, TRUE, TRUE);
- TypedData_Get_Struct(execarg_obj, struct rb_execarg, &exec_arg_data_type, eargp);
+ eargp = rb_execarg_get(execarg_obj);
w->ec = GET_EC();
waitpid_state_init(w, 0, 0);
eargp->waitpid_state = w;