summaryrefslogtreecommitdiff
path: root/src/dns.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/dns.c')
-rw-r--r--src/dns.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/dns.c b/src/dns.c
index b47658c0..73ada0ad 100644
--- a/src/dns.c
+++ b/src/dns.c
@@ -336,7 +336,8 @@ static void Dns_server_req(int channel, const char *hostname)
dns_server[channel].hostname = dStrdup(hostname);
/* Let's set a timeout client to poll the server channel (5 times/sec) */
- a_Timeout_add(0.2,Dns_timeout_client,(void*)(dns_server[channel].channel));
+ a_Timeout_add(0.2,Dns_timeout_client,
+ INT2VOIDP(dns_server[channel].channel));
#ifdef D_DNS_THREADED
/* set the thread attribute to the detached state */