From mboxrd@z Thu Jan 1 00:00:00 1970 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) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=s/BJh7PbXY3lg4HyyCnYNd38atit2MaT9ocJsU43dXQ=; b=XtiYwR8mAHlWz/jxZ6ZxH0wTHqs3MhkbCCu/YZaWwsC87e2x0oVbe196upB+goApF3 lyB+OH7tDDd6GiVCU7/42w+ycf3RxMzqQNPayYTc6YQ6MlDsX03TSMtu4nvnCEeZC2W1 CpH8walAy0z431QStSQiM79rPUiglJLjrdWTMAUzYP3Gf8CjOA92cPSKtE/VIOLQi3jJ SAOTgIc/m561XY8U8jCY3szt3n1kwHM64eEHhEHPrfcwThsnL4nKhJKEBdWkLrITDJZz hL7yeR884Ji0imhLREYWzXAM1ui5CsAYCsrAeOsqWKvy1XBRZPSQU9h1FINhgfDLW7Up P2Qg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=s/BJh7PbXY3lg4HyyCnYNd38atit2MaT9ocJsU43dXQ=; b=VZqh/zvXaZq6BBnU0a26Ovbzu8m8cLxApt89ni/KrYY5/7b23uqiLeV1uiDAPSdNg8 7yaGucXHiaNC4gCqxMCXRbJGUtSg2C9OJai1zytGWronFhbblRyiOOWtTG2AKnk+JvTw osAOW0smitR3h7+Ux+YR5iO8eXuDtUxC/9yRolH5Tn8d9UklLD7wqe6ulrQ/GLWik2Za MTmMhp4f3EmhNkORK+ri9Wzt72ZJdZauiMUh+9KhZGPkiOMOvMHkqRs1Q3SEb64r3lMY NI587hKqKVuUd06K/RqRZsp+fYd2OuxBnEeSUT9ClQ52CQhexXDoDzScqwss6gOyb4BB fVYA== X-Gm-Message-State: AJcUukccd9eEOnxOeam8MF+1Um1T1q4zexl/A2TzARa4MJWlUcGlb6iD 1IIGcBYBcsw2bviz8aK62PP4Ew== X-Google-Smtp-Source: ALg8bN6spvvYhhAXg0pR9a3fAE/YAE63HfbSGyIycRgfTVi8Wcc9LoJ8XwOatQxwsSk1GiaOCBGC4g== X-Received: by 2002:a63:902:: with SMTP id 2mr2526006pgj.219.1546630041590; Fri, 04 Jan 2019 11:27:21 -0800 (PST) Received: from hermes.lan (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id 202sm117718214pfy.87.2019.01.04.11.27.21 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 04 Jan 2019 11:27:21 -0800 (PST) Date: Fri, 4 Jan 2019 11:27:19 -0800 From: Stephen Hemminger To: Jakub Grajciar Cc: Message-ID: <20190104112719.65841efb@hermes.lan> In-Reply-To: <20181213133051.18779-1-jgrajcia@cisco.com> References: <20181213133051.18779-1-jgrajcia@cisco.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [RFC v3] /net: memory interface (memif) X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Jan 2019 19:27:22 -0000 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.