summaryrefslogtreecommitdiff
path: root/io.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-04-30 00:28:30 (GMT)
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-04-30 00:28:30 (GMT)
commit6073edd6369104aa354961f1a9e29fe26548204a (patch)
treefddafaa18fc4539ecec12def44e7cddf91d0d177 /io.c
parent6199c9acff83eb899a2663750aa85bbf0ab53b83 (diff)
io.c: reuse internal_write_func
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63302 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'io.c')
-rw-r--r--io.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/io.c b/io.c
index dfe021a..5e921a5 100644
--- a/io.c
+++ b/io.c
@@ -955,8 +955,7 @@ internal_write_func(void *ptr)
static void*
internal_write_func2(void *ptr)
{
- struct io_internal_write_struct *iis = ptr;
- return (void*)(intptr_t)write(iis->fd, iis->buf, iis->capa);
+ return (void*)internal_write_func(ptr);
}
#ifdef HAVE_WRITEV