Avoid variable length arrays

pull/9955/head
Yuchen Zeng 8 years ago
parent aa5e7600ec
commit 38c10bd6d9
  1. 14
      test/core/iomgr/ev_epoll_linux_test.c

@ -144,10 +144,10 @@ static void test_pollset_queue_merge_items() {
const int num_fds = 2;
const int num_pollsets = 2;
const int num_closures = 4;
test_fd tfds[num_fds];
int fds[num_fds];
test_pollset pollsets[num_pollsets];
grpc_closure closures[num_closures];
test_fd tfds[2 /* num_fds */];
int fds[2 /* num_fds */];
test_pollset pollsets[2 /* num_pollsets */];
grpc_closure closures[4 /* num_closures */];
int i;
int result = 0;
@ -217,9 +217,9 @@ static void test_add_fd_to_pollset() {
grpc_exec_ctx exec_ctx = GRPC_EXEC_CTX_INIT;
const int num_fds = 8;
const int num_pollsets = 4;
test_fd tfds[num_fds];
int fds[num_fds];
test_pollset pollsets[num_pollsets];
test_fd tfds[8 /* num_fds */];
int fds[8 /* num_fds */];
test_pollset pollsets[4 /* num_pollsets */];
void *expected_pi = NULL;
int i;

Loading…
Cancel
Save