1
0
mirror of https://github.com/irssi/irssi.git synced 2024-07-14 03:04:17 -04: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:
Timo Sirainen 2002-12-10 16:36:26 +00:00 committed by cras
parent 78b5867f3f
commit 0743ce0e39

View File

@ -492,7 +492,7 @@ int net_gethostbyaddr(IPADDR *ip, char **name)
*name = g_strdup(hostname);
#else
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;
*name = g_strdup(hp->h_name);