Skip to content

Commit

Permalink
eal/windows: fix C++ compatibility
Browse files Browse the repository at this point in the history
[ upstream commit 56446c9 ]

Explicitly cast void * to type * so that EAL headers may be compiled
as C or C++.

Fixes: e8428a9 ("eal/windows: add some basic functions and macros")

Signed-off-by: Tyler Retzlaff <roretzla@linux.microsoft.com>
  • Loading branch information
Tyler Retzlaff authored and bluca committed Feb 4, 2021
1 parent a6e1385 commit aba3a24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/librte_eal/windows/include/rte_os.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit aba3a24

Please sign in to comment.