fix varargs compiler error

pull/11507/head
Alexander Polcyn 8 years ago
parent 8fd84cfa07
commit 78b092aa6b
  1. 8
      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);
}

Loading…
Cancel
Save