2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 22:45:39 +00:00

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...
This commit is contained in:
Michael Graff
1999-12-06 22:33:20 +00:00
parent 0e0be28c8b
commit 857f8bd11b

View File

@@ -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