[dpdk-dev] [RFC v3] /net: memory interface (memif)

Stephen Hemminger stephen at networkplumber.org
Fri Jan 4 20:27:19 CET 2019


On Thu, 13 Dec 2018 14:30:51 +0100
Jakub Grajciar <jgrajcia at cisco.com> 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.


More information about the dev mailing list