ruby-changes:51095
From: nobu <ko1@a...>
Date: Mon, 30 Apr 2018 09:28:38 +0900 (JST)
Subject: [ruby-changes:51095] nobu:r63302 (trunk): io.c: reuse internal_write_func
nobu 2018-04-30 09:28:30 +0900 (Mon, 30 Apr 2018) New Revision: 63302 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=63302 Log: io.c: reuse internal_write_func Modified files: trunk/io.c Index: io.c =================================================================== --- io.c (revision 63301) +++ io.c (revision 63302) @@ -955,8 +955,7 @@ internal_write_func(void *ptr) https://github.com/ruby/ruby/blob/trunk/io.c#L955 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 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/