From patchwork Fri Jan 15 19:38:21 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tyler Retzlaff X-Patchwork-Id: 86712 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 9AA24A0A04; Fri, 15 Jan 2021 20:38:29 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1D449140EDD; Fri, 15 Jan 2021 20:38:29 +0100 (CET) Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by mails.dpdk.org (Postfix) with ESMTP id 26C75140EB0; Fri, 15 Jan 2021 20:38:27 +0100 (CET) Received: from linuxonhyperv3.guj3yctzbm1etfxqx2vob5hsef.xx.internal.cloudapp.net (linux.microsoft.com [13.77.154.182]) by linux.microsoft.com (Postfix) with ESMTPSA id 554B420B7192; Fri, 15 Jan 2021 11:38:26 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 554B420B7192 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1610739506; bh=Q9jk7FwwBNeS1Rb7IUdZ7CJlXDyOosHAS1a9jGIe8cc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=FT/mQ78Wm9xXO1EE5W91gFFeP332lCsNLB/9ongfSW1jwKwk5nFyNBvnx9O8Axc63 6iIqasvoBjCNrZgAXi0texmOHfZssytLOHySsxyBW4iJ5m8pM6CTBoQUsrinp8L2xL 5/UmdSPqy/RIoUqC7S75tTYaoyo6E4h4JOlQcLEU= From: Tyler Retzlaff To: dev@dpdk.org Cc: stable@dpdk.org, dmitry.kozliuk@gmail.com Date: Fri, 15 Jan 2021 11:38:21 -0800 Message-Id: <1610739501-21508-1-git-send-email-roretzla@linux.microsoft.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1610414325-9104-1-git-send-email-roretzla@linux.microsoft.com> References: <1610414325-9104-1-git-send-email-roretzla@linux.microsoft.com> Subject: [dpdk-dev] [PATCH v2] eal/windows: explicitly cast void * to type * X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Explicitly cast void * to type * so that eal headers may be compiled as C or C++. Fixes: e8428a9d89f1 ("eal/windows: add some basic functions and macros") Cc: stable@dpdk.org Signed-off-by: Tyler Retzlaff --- lib/librte_eal/windows/include/rte_os.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/librte_eal/windows/include/rte_os.h b/lib/librte_eal/windows/include/rte_os.h index ea3fe60e5..7ef38ff06 100644 --- a/lib/librte_eal/windows/include/rte_os.h +++ b/lib/librte_eal/windows/include/rte_os.h @@ -86,7 +86,7 @@ asprintf(char **buffer, const char *format, ...) return -1; size++; - *buffer = malloc(size); + *buffer = (char *)malloc(size); if (*buffer == NULL) return -1;