This commit is contained in:
2025-06-01 00:05:01 +02:00
parent d9aefae0b4
commit 96a9a45c20
3 changed files with 7 additions and 5 deletions

View File

@@ -120,7 +120,7 @@ void renderBar(SDL_Renderer *renderer,
}
int cmpstringp(const void *p1, const void *p2) {
return strcmp(*(const char **)p1, *(const char **)p2);
return strcmp(*(const char **) p1, *(const char **) p2);
}
@@ -150,7 +150,7 @@ void iterateSortedDir(const char *path, DirEntryCallback callback, SDL_Renderer
closedir(dir);
// Sort entries
qsort(names, count, sizeof(char *), cmpstringp);
qsort(names, count, sizeof(char *), cmpstringp);
// Call the user-provided function for each file
if (names != NULL) {