From 5446248b387636591084879fd660daa9c91c1edc Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Mon, 7 Dec 1998 13:43:37 +0000 Subject: [PATCH] Added cast to comparison function. git-svn-id: file:///fltk/svn/fltk/trunk@143 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/scandir.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scandir.c b/src/scandir.c index da3fefaa7..27f950486 100644 --- a/src/scandir.c +++ b/src/scandir.c @@ -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; }