From 857f8bd11b9bfef81ebb41e9b7a8dc4bdf5531f9 Mon Sep 17 00:00:00 2001 From: Michael Graff Date: Mon, 6 Dec 1999 22:33:20 +0000 Subject: [PATCH] Cast to (void *) to shut up compiler warnings re signed/unsigned char *. It would be so nice if people would define 'msg_control' in a msghdr to be consistant with other pointers... --- lib/isc/unix/socket.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/isc/unix/socket.c b/lib/isc/unix/socket.c index a0461bf5fa..374445c720 100644 --- a/lib/isc/unix/socket.c +++ b/lib/isc/unix/socket.c @@ -603,7 +603,7 @@ build_msghdr_recv(isc_socket_t *sock, isc_socketevent_t *dev, msg->msg_controllen = 0; #if defined(USE_CMSG) /* XXXMLG implement! */ if (sock->type == isc_sockettype_udp) { - msg->msg_control = &sock->cmsg[0]; + msg->msg_control = (void *)&sock->cmsg[0]; msg->msg_controllen = sizeof(sock->cmsg); } #endif