[dpdk-stable] [PATCH v2] eal/windows: explicitly cast void * to type *
Tyler Retzlaff
roretzla at linux.microsoft.com
Fri Jan 15 20:38:21 CET 2021
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 at dpdk.org
Signed-off-by: Tyler Retzlaff <roretzla at linux.microsoft.com>
---
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
More information about the stable
mailing list