Skip to content
Snippets Groups Projects
Commit 96e198ab authored by Muxi Yan's avatar Muxi Yan
Browse files

Fix portability

parent 16fd216b
No related branches found
No related tags found
No related merge requests found
...@@ -41,6 +41,7 @@ ...@@ -41,6 +41,7 @@
#include <grpc/support/sync.h> #include <grpc/support/sync.h>
#include <grpc/support/thd.h> #include <grpc/support/thd.h>
#include <grpc/support/useful.h> #include <grpc/support/useful.h>
#include <grpc/support/workaround_list.h>
#include "src/core/ext/filters/client_channel/client_channel.h" #include "src/core/ext/filters/client_channel/client_channel.h"
#include "src/core/ext/filters/http/server/http_server_filter.h" #include "src/core/ext/filters/http/server/http_server_filter.h"
#include "src/core/ext/transport/chttp2/transport/chttp2_transport.h" #include "src/core/ext/transport/chttp2/transport/chttp2_transport.h"
...@@ -50,10 +51,8 @@ ...@@ -50,10 +51,8 @@
#include "test/core/util/port.h" #include "test/core/util/port.h"
#include "test/core/util/test_config.h" #include "test/core/util/test_config.h"
/* List the workarounds to be enabled */ static const size_t workarounds_num = GRPC_MAX_WORKAROUND_ID;
static char *workarounds_enabled[] = {GRPC_ARG_WORKAROUND_CRONET_COMPRESSION}; static char *workarounds_enabled[GRPC_MAX_WORKAROUND_ID] = {GRPC_ARG_WORKAROUND_CRONET_COMPRESSION};
static const size_t workarounds_num =
sizeof(workarounds_enabled) / sizeof(*workarounds_enabled);
typedef struct fullstack_fixture_data { typedef struct fullstack_fixture_data {
char *localaddr; char *localaddr;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment