From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Hemminger Subject: Re: [RFC v3] /net: memory interface (memif) Date: Fri, 4 Jan 2019 11:27:19 -0800 Message-ID: <20190104112719.65841efb@hermes.lan> References: <20181213133051.18779-1-jgrajcia@cisco.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: To: Jakub Grajciar Return-path: Received: from mail-pf1-f172.google.com (mail-pf1-f172.google.com [209.85.210.172]) by dpdk.org (Postfix) with ESMTP id 842781B4C5 for ; Fri, 4 Jan 2019 20:27:22 +0100 (CET) Received: by mail-pf1-f172.google.com with SMTP id b85so18735892pfc.3 for ; Fri, 04 Jan 2019 11:27:22 -0800 (PST) In-Reply-To: <20181213133051.18779-1-jgrajcia@cisco.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Thu, 13 Dec 2018 14:30:51 +0100 Jakub Grajciar 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.