From 0743ce0e39c1bd43ca2b473593452d21514b38a1 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Tue, 10 Dec 2002 16:36:26 +0000 Subject: [PATCH] Compiler warning fix git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3054 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/core/network.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/network.c b/src/core/network.c index 64605413..ab19aab0 100644 --- a/src/core/network.c +++ b/src/core/network.c @@ -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);