Added cast to comparison function.

git-svn-id: file:///fltk/svn/fltk/trunk@143 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Michael R Sweet 1998-12-07 13:43:37 +00:00
parent 1f4f3b00b1
commit 5446248b38

View File

@ -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;
}