[vlc-commits] filesystem: use vlc_qsort
Thomas Guillem
git at videolan.org
Tue Jan 22 18:56:16 CET 2019
vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Mon Jan 21 16:45:43 2019 +0100| [18ff7f39b02c6d0c50820e03ed9adefad6b952c5] | committer: Thomas Guillem
filesystem: use vlc_qsort
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=18ff7f39b02c6d0c50820e03ed9adefad6b952c5
---
src/text/filesystem.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/text/filesystem.c b/src/text/filesystem.c
index 3e7af86d0c..3539724ccf 100644
--- a/src/text/filesystem.c
+++ b/src/text/filesystem.c
@@ -30,6 +30,7 @@
#include <vlc_common.h>
#include <vlc_fs.h>
+#include <vlc_sort.h>
#include <assert.h>
@@ -161,7 +162,7 @@ int vlc_loaddir( DIR *dir, char ***namelist,
}
if (compar != NULL && num > 0)
- qsort_r(tab, num, sizeof (*tab), compar_void, compar);
+ vlc_qsort(tab, num, sizeof (*tab), compar_void, compar);
*namelist = tab;
return num;
More information about the vlc-commits
mailing list