Skip to content

Commit 229410f

Browse files
authored
add const to fix compiler warnings (#222)
1 parent 0b8be9f commit 229410f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

loader/linux/icd_linux.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,8 @@ static int compareDirElem(const void *a, const void *b)
132132
return strcoll(((struct dirElem *)a)->d_name, ((struct dirElem *)b)->d_name);
133133
}
134134

135-
static inline void khrIcdOsDirEnumerate(char *path, char *env, const char *extension,
135+
static inline void khrIcdOsDirEnumerate(const char *path, const char *env,
136+
const char *extension,
136137
khrIcdFileAdd addFunc, int bSort)
137138
{
138139
DIR *dir = NULL;

0 commit comments

Comments
 (0)