src: Code cleanup

This commit is contained in:
Tatsuhiro Tsujikawa 2016-02-07 18:41:38 +09:00
parent 6c147aa1c5
commit 60c0c2dd56
1 changed files with 2 additions and 2 deletions

View File

@ -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);