On Thu, 13 Dec 2018 14:30:51 +0100 Jakub Grajciar <[email protected]> wrote:
> +static ssize_t
> +memif_msg_send(int fd, memif_msg_t *msg, int afd)
> +{
> + struct msghdr mh = { 0 };
> + struct iovec iov[1];
> + char ctl[CMSG_SPACE(sizeof(int))];
> +
> + iov[0].iov_base = (void *)msg;
Since iov_base is of type void * the cast is unnecessary in C.

