зеркало из https://github.com/github/ruby.git
* thread_pthread.c (consume_communication_pipe): don't use C99
style variable length array. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32251 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
f8cc779680
Коммит
3639736d5d
|
@ -1,3 +1,8 @@
|
|||
Mon Jun 27 22:06:12 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
|
||||
|
||||
* 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@gmail.com>
|
||||
|
||||
* thread_pthread.c (consume_communication_pipe): change return
|
||||
|
|
|
@ -1022,7 +1022,7 @@ static void
|
|||
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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче