From cddf6f838aa48c8d5c9f75cee5a8ed8abdcb25b9 Mon Sep 17 00:00:00 2001 From: Noah Eisen Date: Fri, 9 Feb 2018 09:30:21 -0800 Subject: Add some manual const casts to fix build --- test/core/iomgr/udp_server_test.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/core/iomgr') diff --git a/test/core/iomgr/udp_server_test.cc b/test/core/iomgr/udp_server_test.cc index f21af5d401..204a32abf3 100644 --- a/test/core/iomgr/udp_server_test.cc +++ b/test/core/iomgr/udp_server_test.cc @@ -109,7 +109,7 @@ static int test_socket_factory_bind(grpc_socket_factory* factory, int sockfd, const grpc_resolved_address* addr) { test_socket_factory* f = reinterpret_cast(factory); f->number_of_bind_calls++; - return bind(sockfd, reinterpret_cast(addr->addr), static_cast(addr->len)); + return bind(sockfd, reinterpret_cast(const_cast(addr->addr)), static_cast(addr->len)); } static int test_socket_factory_compare(grpc_socket_factory* a, -- cgit v1.2.3