mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -05:00
Compiler warning fix
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3054 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
78b5867f3f
commit
0743ce0e39
@ -492,7 +492,7 @@ int net_gethostbyaddr(IPADDR *ip, char **name)
|
|||||||
*name = g_strdup(hostname);
|
*name = g_strdup(hostname);
|
||||||
#else
|
#else
|
||||||
if (ip->family != AF_INET) return -1;
|
if (ip->family != AF_INET) return -1;
|
||||||
hp = gethostbyaddr(&ip->ip, 4, AF_INET);
|
hp = gethostbyaddr((const char *) &ip->ip, 4, AF_INET);
|
||||||
if (hp == NULL) return -1;
|
if (hp == NULL) return -1;
|
||||||
|
|
||||||
*name = g_strdup(hp->h_name);
|
*name = g_strdup(hp->h_name);
|
||||||
|
Loading…
Reference in New Issue
Block a user