diff options
author | murgatroid99 <mlumish@google.com> | 2016-10-26 13:40:50 -0700 |
---|---|---|
committer | murgatroid99 <mlumish@google.com> | 2016-10-26 13:40:50 -0700 |
commit | d7648feb225e8cefd26ff5a611f8ca733a755d6c (patch) | |
tree | f75b0ea3279d5859ca58c362baaabb3b3709baec /test/core | |
parent | d4a5971ae89e124f67781a6fda57b36af3d7fb54 (diff) |
Fix issue with pointers in udp_server_test
Diffstat (limited to 'test/core')
-rw-r--r-- | test/core/iomgr/udp_server_test.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/core/iomgr/udp_server_test.c b/test/core/iomgr/udp_server_test.c index d9f9cd748b..9bea229466 100644 --- a/test/core/iomgr/udp_server_test.c +++ b/test/core/iomgr/udp_server_test.c @@ -185,7 +185,7 @@ static void test_receive(int number_of_clients) { /* Create a socket, send a packet to the UDP server. */ clifd = socket(addr->ss_family, SOCK_DGRAM, 0); GPR_ASSERT(clifd >= 0); - GPR_ASSERT(connect(clifd, (struct sockaddr *)&addr, + GPR_ASSERT(connect(clifd, (struct sockaddr *)addr, (socklen_t)resolved_addr.len) == 0); GPR_ASSERT(5 == write(clifd, "hello", 5)); while (g_number_of_reads == number_of_reads_before && |