From 5c13bc7509e3bd88f299bd3d194a4e652bd5e004 Mon Sep 17 00:00:00 2001 From: lyndonli Date: Fri, 27 Sep 2024 11:10:37 +0800 Subject: [PATCH] wsl/hsakmt: Modify num_subdirs parameter to resolve the warning Signed-off-by: lyndonli Reviewed-by: Flora Cui Part-of: --- topology.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/topology.cpp b/topology.cpp index 3d3a9e4c93..1f93340ffd 100644 --- a/topology.cpp +++ b/topology.cpp @@ -117,7 +117,7 @@ static void free_properties(node_props_t *props, int size) { * Use blank string, "", to count all. * Return - number of sub-directories */ -static int num_subdirs(char *dirpath, char *prefix) { +static int num_subdirs(char *dirpath, const char *prefix) { int count = 0; DIR *dirp; struct dirent *dir;