diff options
author | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2018-04-04 19:19:41 +0200 |
---|---|---|
committer | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2018-04-04 19:20:20 +0200 |
commit | eab30cdc3a3ec3f284fb300889422dbaef880da5 (patch) | |
tree | ed117220841e71ab8144fa7c85317e7ecf21de5f /src/core/lib/iomgr/socket_utils_uv.cc | |
parent | 5860671868f003835f77ac03a3f90336044e9329 (diff) |
Using libuv's inet_ntop for portability.
Diffstat (limited to 'src/core/lib/iomgr/socket_utils_uv.cc')
-rw-r--r-- | src/core/lib/iomgr/socket_utils_uv.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/lib/iomgr/socket_utils_uv.cc b/src/core/lib/iomgr/socket_utils_uv.cc index 8538abc7e4..7eba40c46b 100644 --- a/src/core/lib/iomgr/socket_utils_uv.cc +++ b/src/core/lib/iomgr/socket_utils_uv.cc @@ -38,8 +38,8 @@ int grpc_inet_pton(int af, const char* src, void* dst) { } const char* grpc_inet_ntop(int af, const void* src, char* dst, size_t size) { - /* Windows InetNtopA wants a mutable ip pointer */ - return inet_ntop(af, src, dst, (socklen_t)size); + uv_inet_ntop(af, src, dst, size); + return dst; } #endif /* GRPC_UV */ |