mirror of
https://github.com/irssi/irssi.git
synced 2025-02-02 15:08:01 -05:00
Minor style fix in net_ip2host.
This commit is contained in:
parent
70c7949cfe
commit
f31b2026b4
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user