diff options
author | Noah Eisen <ncteisen@google.com> | 2018-02-09 09:30:21 -0800 |
---|---|---|
committer | Noah Eisen <ncteisen@google.com> | 2018-02-09 09:30:21 -0800 |
commit | cddf6f838aa48c8d5c9f75cee5a8ed8abdcb25b9 (patch) | |
tree | f57250b7d29dc2586cf895160aa5540358cb8f96 /test/core/iomgr | |
parent | be82e64b3debcdb1d9ec6a149fc85af0d46bfb7e (diff) |
Add some manual const casts to fix build
Diffstat (limited to 'test/core/iomgr')
-rw-r--r-- | test/core/iomgr/udp_server_test.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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<test_socket_factory*>(factory); f->number_of_bind_calls++; - return bind(sockfd, reinterpret_cast<struct sockaddr*>(addr->addr), static_cast<socklen_t>(addr->len)); + return bind(sockfd, reinterpret_cast<struct sockaddr*>(const_cast<char*>(addr->addr)), static_cast<socklen_t>(addr->len)); } static int test_socket_factory_compare(grpc_socket_factory* a, |