Commit 60c0c2dd authored by Tatsuhiro Tsujikawa's avatar Tatsuhiro Tsujikawa

src: Code cleanup

parent 6c147aa1
......@@ -170,8 +170,8 @@ int resolve_hostname(Address *addr, const char *hostname, uint16_t port,
auto res_d = defer(freeaddrinfo, res);
char host[NI_MAXHOST];
rv = getnameinfo(res->ai_addr, res->ai_addrlen, host, sizeof(host), 0, 0,
NI_NUMERICHOST);
rv = getnameinfo(res->ai_addr, res->ai_addrlen, host, sizeof(host), nullptr,
0, NI_NUMERICHOST);
if (rv != 0) {
LOG(FATAL) << "Address resolution for " << hostname
<< " failed: " << gai_strerror(rv);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment