Merge pull request #14930 from nicolasnoble/inet_ntop-uv

Using libuv's inet_ntop for portability.
pull/14936/head
Nicolas Noble 7 years ago committed by GitHub
commit 396dd1e647
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      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 */

Loading…
Cancel
Save