From 1ef8bd094483eb5a0696e5c38843d08c399ee2f1 Mon Sep 17 00:00:00 2001 From: Jan Tattermusch Date: Mon, 18 Mar 2019 19:13:30 +0100 Subject: [PATCH] fix cast warnings --- src/csharp/ext/grpc_csharp_ext.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/csharp/ext/grpc_csharp_ext.c b/src/csharp/ext/grpc_csharp_ext.c index fcd4caf5f49..26a92708e8c 100644 --- a/src/csharp/ext/grpc_csharp_ext.c +++ b/src/csharp/ext/grpc_csharp_ext.c @@ -1041,13 +1041,13 @@ static int grpcsharp_get_metadata_handler( grpc_metadata creds_md[GRPC_METADATA_CREDENTIALS_PLUGIN_SYNC_MAX], size_t* num_creds_md, grpc_status_code* status, const char** error_details) { - native_callback_dispatcher(state, context.service_url, context.method_name, cb, user_data, - 0, NULL); + native_callback_dispatcher(state, (void*)context.service_url, (void*)context.method_name, cb, user_data, + (void*)0, NULL); return 0; /* Asynchronous return. */ } static void grpcsharp_metadata_credentials_destroy_handler(void* state) { - native_callback_dispatcher(state, NULL, NULL, NULL, NULL, 1, NULL); + native_callback_dispatcher(state, NULL, NULL, NULL, NULL, (void*)1, NULL); } GPR_EXPORT grpc_call_credentials* GPR_CALLTYPE