aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Nicolas Noble <nicolasnoble@users.noreply.github.com>2015-08-03 12:39:50 -0700
committerGravatar Nicolas Noble <nicolasnoble@users.noreply.github.com>2015-08-03 12:39:50 -0700
commit9dc45f919275c0da2a28092cac18861c6039a783 (patch)
treecbbb147a71bcc1e1fb014cc9ea672534bf77eb26
parentbee7b68b54ae379b89424fd207dfa47ec68f87a7 (diff)
parentdeab29e1821f1d7b5b074a42440ea9adcb51b15e (diff)
Merge pull request #2769 from grpc/make_vs2010_happy
Fix compilation under VS 2010
-rw-r--r--src/core/iomgr/tcp_windows.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/core/iomgr/tcp_windows.c b/src/core/iomgr/tcp_windows.c
index 5e0457a37b..89aa741470 100644
--- a/src/core/iomgr/tcp_windows.c
+++ b/src/core/iomgr/tcp_windows.c
@@ -369,14 +369,16 @@ static grpc_endpoint_write_status win_write(grpc_endpoint *ep,
}
static void win_add_to_pollset(grpc_endpoint *ep, grpc_pollset *ps) {
+ grpc_tcp *tcp;
(void) ps;
- grpc_tcp *tcp = (grpc_tcp *) ep;
+ tcp = (grpc_tcp *) ep;
grpc_iocp_add_socket(tcp->socket);
}
static void win_add_to_pollset_set(grpc_endpoint *ep, grpc_pollset_set *pss) {
+ grpc_tcp *tcp;
(void) pss;
- grpc_tcp *tcp = (grpc_tcp *) ep;
+ tcp = (grpc_tcp *) ep;
grpc_iocp_add_socket(tcp->socket);
}