Skip to content
Snippets Groups Projects
Commit 04dacf5f authored by Craig Tiller's avatar Craig Tiller
Browse files

Fix windows

parent b3466dc3
Branches
Tags
No related merge requests found
...@@ -486,8 +486,12 @@ void grpc_tcp_server_start(grpc_exec_ctx *exec_ctx, grpc_tcp_server *s, ...@@ -486,8 +486,12 @@ void grpc_tcp_server_start(grpc_exec_ctx *exec_ctx, grpc_tcp_server *s,
} }
int grpc_tcp_listener_get_port(grpc_tcp_listener *listener) { int grpc_tcp_listener_get_port(grpc_tcp_listener *listener) {
if (listener != NULL) {
grpc_tcp_listener *sp = listener; grpc_tcp_listener *sp = listener;
return sp->port; return sp->port;
} else {
return 0;
}
} }
void grpc_tcp_listener_ref(grpc_tcp_listener *listener) { void grpc_tcp_listener_ref(grpc_tcp_listener *listener) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment