From: Tyler Retzlaff Date: Fri, 15 Jan 2021 19:38:21 +0000 (-0800) Subject: eal/windows: fix C++ compatibility X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=56446c913f0a0c28fb1d734986942da122b1174a;p=dpdk.git eal/windows: fix C++ compatibility 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 --- diff --git a/lib/librte_eal/windows/include/rte_os.h b/lib/librte_eal/windows/include/rte_os.h index ea3fe60e53..7ef38ff06c 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;