mirror of
https://github.com/fltk/fltk.git
synced 2026-06-05 08:06:35 +08:00
Added cast to comparison function.
git-svn-id: file:///fltk/svn/fltk/trunk@143 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
+1
-1
@@ -115,7 +115,7 @@ scandir (const char *dir, struct dirent ***namelist,
|
|||||||
errno = save;
|
errno = save;
|
||||||
|
|
||||||
/* Sort the list if we have a comparison function to sort with. */
|
/* 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;
|
*namelist = v;
|
||||||
return i;
|
return i;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user