From 6f85ff3aac98187ff140bad192d01a6cfd31cf1c Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Mon, 25 Mar 2013 07:29:01 +1100 Subject: [PATCH] cast to (void ) --- lib/isc/unix/net.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/isc/unix/net.c b/lib/isc/unix/net.c index 491702432d..c7f4f94f47 100644 --- a/lib/isc/unix/net.c +++ b/lib/isc/unix/net.c @@ -462,7 +462,7 @@ cmsgsend(int s, int level, int type, struct addrinfo *res) { } control; struct cmsghdr *cmsgp; int dscp = 46; - struct iovec iovec = { &iovec, sizeof(iovec) }; + struct iovec iovec = { (void *)&iovec, sizeof(iovec) }; if (bind(s, res->ai_addr, res->ai_addrlen) < 0) { isc__strerror(errno, strbuf, sizeof(strbuf));