summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/scandir.c2
1 files changed, 1 insertions, 1 deletions
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;
}