aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/surface
diff options
context:
space:
mode:
authorGravatar vjpai <vpai@google.com>2016-03-21 20:58:44 -0700
committerGravatar vjpai <vpai@google.com>2016-03-21 20:58:44 -0700
commite7077b5c960775eaac2c69afec040735504ce060 (patch)
tree589001f91ff8f700aee5c40df38ce3e828e7fea4 /src/core/surface
parentfb6e13b1b5ba135220c7be1edf3fb6f92e79872b (diff)
Fix a missing include in UDP_SERVER code and
do some typecasts for stronger warning-protection in channel stack builder calls
Diffstat (limited to 'src/core/surface')
-rw-r--r--src/core/surface/init.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/core/surface/init.c b/src/core/surface/init.c
index b50770959f..1da2e38308 100644
--- a/src/core/surface/init.c
+++ b/src/core/surface/init.c
@@ -90,18 +90,21 @@ static void do_basic_init(void) {
}
static bool append_filter(grpc_channel_stack_builder *builder, void *arg) {
- return grpc_channel_stack_builder_append_filter(builder, arg, NULL, NULL);
+ return grpc_channel_stack_builder_append_filter(
+ builder, (const grpc_channel_filter *)arg, NULL, NULL);
}
static bool prepend_filter(grpc_channel_stack_builder *builder, void *arg) {
- return grpc_channel_stack_builder_prepend_filter(builder, arg, NULL, NULL);
+ return grpc_channel_stack_builder_prepend_filter(
+ builder, (const grpc_channel_filter *)arg, NULL, NULL);
}
static bool maybe_add_http_filter(grpc_channel_stack_builder *builder,
void *arg) {
grpc_transport *t = grpc_channel_stack_builder_get_transport(builder);
if (t && strstr(t->vtable->name, "http")) {
- return grpc_channel_stack_builder_prepend_filter(builder, arg, NULL, NULL);
+ return grpc_channel_stack_builder_prepend_filter(
+ builder, (const grpc_channel_filter *)arg, NULL, NULL);
}
return true;
}