From 229410f86a8c8c9e0f86f195409e5481a2bae067 Mon Sep 17 00:00:00 2001 From: Ben Ashbaugh Date: Fri, 2 Jun 2023 10:45:40 -0700 Subject: [PATCH] add const to fix compiler warnings (#222) --- loader/linux/icd_linux.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/loader/linux/icd_linux.c b/loader/linux/icd_linux.c index 6dd24983..44915fe1 100644 --- a/loader/linux/icd_linux.c +++ b/loader/linux/icd_linux.c @@ -132,7 +132,8 @@ static int compareDirElem(const void *a, const void *b) return strcoll(((struct dirElem *)a)->d_name, ((struct dirElem *)b)->d_name); } -static inline void khrIcdOsDirEnumerate(char *path, char *env, const char *extension, +static inline void khrIcdOsDirEnumerate(const char *path, const char *env, + const char *extension, khrIcdFileAdd addFunc, int bSort) { DIR *dir = NULL;