Added cast to comparison function.
git-svn-id: file:///fltk/svn/fltk/trunk@143 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
parent
1f4f3b00b1
commit
5446248b38
@ -115,7 +115,7 @@ scandir (const char *dir, struct dirent ***namelist,
|
||||
errno = save;
|
||||
|
||||
/* Sort the list if we have a comparison function to sort with. */
|
||||
if (compar) qsort (v, i, sizeof (*v), compar);
|
||||
if (compar) qsort (v, i, sizeof (*v), (int (*)(const void *, const void *))compar);
|
||||
*namelist = v;
|
||||
return i;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user