Skip to content

Commit

Permalink
add const to fix compiler warnings (#222)
Browse files Browse the repository at this point in the history
  • Loading branch information
bashbaug committed Jun 2, 2023
1 parent 0b8be9f commit 229410f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion loader/linux/icd_linux.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 229410f

Please sign in to comment.