aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/core
diff options
context:
space:
mode:
authorGravatar Robbie Shade <rjshade@google.com>2015-09-29 14:19:45 -0400
committerGravatar Robbie Shade <rjshade@google.com>2015-09-29 14:19:45 -0400
commita8e2e5263db11e7946e2b7fc249a94cca0f49089 (patch)
tree89c89af9e0845ff703938aa745bc5ca07179629f /test/core
parent2d8c6b37d1d86c4e98ed7cb7b7db213cc766a22f (diff)
Pass through grpc_fd pointer rather than int.
Diffstat (limited to 'test/core')
-rw-r--r--test/core/iomgr/udp_server_test.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/core/iomgr/udp_server_test.c b/test/core/iomgr/udp_server_test.c
index 6d3dfeeb57..fc0026da4d 100644
--- a/test/core/iomgr/udp_server_test.c
+++ b/test/core/iomgr/udp_server_test.c
@@ -49,12 +49,12 @@ static grpc_pollset g_pollset;
static int g_number_of_reads = 0;
static int g_number_of_bytes_read = 0;
-static void on_read(int fd, grpc_server *server) {
+static void on_read(grpc_fd *emfd, grpc_server *server) {
char read_buffer[512];
ssize_t byte_count;
gpr_mu_lock(GRPC_POLLSET_MU(&g_pollset));
- byte_count = recv(fd, read_buffer, sizeof(read_buffer), 0);
+ byte_count = recv(emfd->fd, read_buffer, sizeof(read_buffer), 0);
g_number_of_reads++;
g_number_of_bytes_read += (int)byte_count;