aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/core/channel/channel_stack_test.c
diff options
context:
space:
mode:
authorGravatar Mark D. Roth <roth@google.com>2016-11-28 17:42:53 +0000
committerGravatar Mark D. Roth <roth@google.com>2016-11-28 17:42:53 +0000
commite85477646c5b6ec159715a7e8d9ebaaf6d451777 (patch)
treeb2535fb4f06b24e32d6688bdcd65294432bbde6b /test/core/channel/channel_stack_test.c
parentc1087883579714691dc5cb3a66445da497c1a08c (diff)
Fix build problems.
Diffstat (limited to 'test/core/channel/channel_stack_test.c')
-rw-r--r--test/core/channel/channel_stack_test.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/test/core/channel/channel_stack_test.c b/test/core/channel/channel_stack_test.c
index 0840820cca..b43d05eec3 100644
--- a/test/core/channel/channel_stack_test.c
+++ b/test/core/channel/channel_stack_test.c
@@ -41,9 +41,9 @@
#include "test/core/util/test_config.h"
-static void channel_init_func(grpc_exec_ctx *exec_ctx,
- grpc_channel_element *elem,
- grpc_channel_element_args *args) {
+static grpc_error *channel_init_func(grpc_exec_ctx *exec_ctx,
+ grpc_channel_element *elem,
+ grpc_channel_element_args *args) {
GPR_ASSERT(args->channel_args->num_args == 1);
GPR_ASSERT(args->channel_args->args[0].type == GRPC_ARG_INTEGER);
GPR_ASSERT(0 == strcmp(args->channel_args->args[0].key, "test_key"));
@@ -51,6 +51,7 @@ static void channel_init_func(grpc_exec_ctx *exec_ctx,
GPR_ASSERT(args->is_first);
GPR_ASSERT(args->is_last);
*(int *)(elem->channel_data) = 0;
+ return GRPC_ERROR_NONE;
}
static grpc_error *call_init_func(grpc_exec_ctx *exec_ctx,