diff options
author | Craig Tiller <ctiller@google.com> | 2015-12-22 13:49:30 -0800 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2015-12-22 13:49:30 -0800 |
commit | 7536af02cf218f8dcb1368bec6d86c65db95c9b4 (patch) | |
tree | cd560e1321aed28504aca5358dabbf49692a0956 /src/core/client_config/resolvers | |
parent | 2d2963e5e919128929e8a62a17fbbc9f3fd684d9 (diff) |
Eliminate gpr_ int types - and insist on C99 variants instead
Diffstat (limited to 'src/core/client_config/resolvers')
-rw-r--r-- | src/core/client_config/resolvers/sockaddr_resolver.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/client_config/resolvers/sockaddr_resolver.c b/src/core/client_config/resolvers/sockaddr_resolver.c index 81d6627ecc..6343259246 100644 --- a/src/core/client_config/resolvers/sockaddr_resolver.c +++ b/src/core/client_config/resolvers/sockaddr_resolver.c @@ -230,7 +230,7 @@ static int parse_ipv4(grpc_uri *uri, struct sockaddr_storage *addr, gpr_log(GPR_ERROR, "invalid ipv4 port: '%s'", port); goto done; } - in->sin_port = htons((gpr_uint16)port_num); + in->sin_port = htons((uint16_t)port_num); } else { gpr_log(GPR_ERROR, "no port given for ipv4 scheme"); goto done; @@ -271,7 +271,7 @@ static int parse_ipv6(grpc_uri *uri, struct sockaddr_storage *addr, gpr_log(GPR_ERROR, "invalid ipv6 port: '%s'", port); goto done; } - in6->sin6_port = htons((gpr_uint16)port_num); + in6->sin6_port = htons((uint16_t)port_num); } else { gpr_log(GPR_ERROR, "no port given for ipv6 scheme"); goto done; |