diff options
author | Nicolas Noble <nicolasnoble@users.noreply.github.com> | 2015-08-03 12:39:50 -0700 |
---|---|---|
committer | Nicolas Noble <nicolasnoble@users.noreply.github.com> | 2015-08-03 12:39:50 -0700 |
commit | 9dc45f919275c0da2a28092cac18861c6039a783 (patch) | |
tree | cbbb147a71bcc1e1fb014cc9ea672534bf77eb26 | |
parent | bee7b68b54ae379b89424fd207dfa47ec68f87a7 (diff) | |
parent | deab29e1821f1d7b5b074a42440ea9adcb51b15e (diff) |
Merge pull request #2769 from grpc/make_vs2010_happy
Fix compilation under VS 2010
-rw-r--r-- | src/core/iomgr/tcp_windows.c | 6 |
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); } |