diff options
author | 2017-06-14 23:34:38 -0700 | |
---|---|---|
committer | 2017-06-14 23:52:28 -0700 | |
commit | 78b092aa6b062cfd8b2f203049f298b26fec9210 (patch) | |
tree | 7f4c6b9f1fcfb4fd76090223902a2a4e395a3d32 /test/core/channel/minimal_stack_is_minimal_test.c | |
parent | 8fd84cfa07a7f33766a05e3343132a6222e5aa32 (diff) |
fix varargs compiler error
Diffstat (limited to 'test/core/channel/minimal_stack_is_minimal_test.c')
-rw-r--r-- | test/core/channel/minimal_stack_is_minimal_test.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/core/channel/minimal_stack_is_minimal_test.c b/test/core/channel/minimal_stack_is_minimal_test.c index 7afcaa555c..c99b54c6ac 100644 --- a/test/core/channel/minimal_stack_is_minimal_test.c +++ b/test/core/channel/minimal_stack_is_minimal_test.c @@ -44,7 +44,7 @@ // use CHECK_STACK instead static int check_stack(const char *file, int line, const char *transport_name, grpc_channel_args *init_args, - grpc_channel_stack_type channel_stack_type, ...); + unsigned channel_stack_type, ...); // arguments: const char *transport_name - the name of the transport type to // simulate @@ -111,7 +111,7 @@ int main(int argc, char **argv) { static int check_stack(const char *file, int line, const char *transport_name, grpc_channel_args *init_args, - grpc_channel_stack_type channel_stack_type, ...) { + unsigned channel_stack_type, ...) { // create dummy channel stack grpc_channel_stack_builder *builder = grpc_channel_stack_builder_create(); grpc_transport_vtable fake_transport_vtable = {.name = transport_name}; @@ -125,8 +125,8 @@ static int check_stack(const char *file, int line, const char *transport_name, grpc_exec_ctx exec_ctx = GRPC_EXEC_CTX_INIT; grpc_channel_stack_builder_set_channel_arguments(&exec_ctx, builder, channel_args); - GPR_ASSERT( - grpc_channel_init_create_stack(&exec_ctx, builder, channel_stack_type)); + GPR_ASSERT(grpc_channel_init_create_stack( + &exec_ctx, builder, (grpc_channel_stack_type)channel_stack_type)); grpc_exec_ctx_finish(&exec_ctx); } |