ruby-changes:20203
From: kosaki <ko1@a...>
Date: Mon, 27 Jun 2011 22:11:10 +0900 (JST)
Subject: [ruby-changes:20203] kosaki:r32251 (trunk): * thread_pthread.c (consume_communication_pipe): don't use C99
kosaki 2011-06-27 22:10:26 +0900 (Mon, 27 Jun 2011) New Revision: 32251 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=32251 Log: * thread_pthread.c (consume_communication_pipe): don't use C99 style variable length array. Modified files: trunk/ChangeLog trunk/thread_pthread.c Index: ChangeLog =================================================================== --- ChangeLog (revision 32250) +++ ChangeLog (revision 32251) @@ -1,3 +1,8 @@ +Mon Jun 27 22:06:12 2011 KOSAKI Motohiro <kosaki.motohiro@g...> + + * thread_pthread.c (consume_communication_pipe): don't use C99 + style variable length array. + Mon Jun 27 22:04:27 2011 KOSAKI Motohiro <kosaki.motohiro@g...> * thread_pthread.c (consume_communication_pipe): change return Index: thread_pthread.c =================================================================== --- thread_pthread.c (revision 32250) +++ thread_pthread.c (revision 32251) @@ -1022,7 +1022,7 @@ consume_communication_pipe(void) { const size_t buff_size = 1024; - char buff[buff_size]; + char buff[1024]; ssize_t result; retry: result = read(timer_thread_pipe[0], buff, buff_size); -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/