From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Burakov, Anatoly" Subject: Re: [PATCH v2 1/4] eal: use sizeof to avoid a double use of a define Date: Tue, 10 Apr 2018 17:18:07 +0100 Message-ID: <46888c05-e24b-1555-5278-b14591a10d8f@intel.com> References: <20180403130439.11151-1-olivier.matz@6wind.com> <20180403130439.11151-2-olivier.matz@6wind.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit To: Olivier Matz , dev@dpdk.org Return-path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id 124EB1B7DC for ; Tue, 10 Apr 2018 18:18:10 +0200 (CEST) In-Reply-To: <20180403130439.11151-2-olivier.matz@6wind.com> Content-Language: en-US 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 03-Apr-18 2:04 PM, Olivier Matz wrote: > Only a cosmetic change: the *_LEN defines are already used > when defining the buffer. Using sizeof() ensures that the length > stays consistent, even if the definition is modified. > > Signed-off-by: Olivier Matz > --- Reviewed-by: Anatoly Burakov -- Thanks, Anatoly