1
0
mirror of https://github.com/irssi/irssi.git synced 2024-09-15 04:28:09 -04:00

Minor style fix in net_ip2host.

This commit is contained in:
LemonBoy 2016-01-27 15:04:07 +01:00
parent 70c7949cfe
commit f31b2026b4

View File

@ -459,10 +459,7 @@ int net_gethostbyaddr(IPADDR *ip, char **name)
int net_ip2host(IPADDR *ip, char *host)
{
if (!inet_ntop(ip->family, &ip->ip, host, MAX_IP_LEN))
return -1;
return 0;
return inet_ntop(ip->family, &ip->ip, host, MAX_IP_LEN) ? 0 : -1;
}
int net_host2ip(const char *host, IPADDR *ip)