From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 4417DA0A05 for ; Fri, 15 Jan 2021 20:38:30 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 30ABD140EE4; Fri, 15 Jan 2021 20:38:30 +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-stable] [PATCH v2] eal/windows: explicitly cast void * to type * X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Sender: "stable" 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; -- 2.29.0.vfs.0.0