[vlc-devel] [PATCH V2 7/8] filesystem: use vlc_qsort
Thomas Guillem
thomas at gllm.fr
Tue Jan 22 11:13:24 CET 2019
---
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..f318cf0a41 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_utils.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;
--
2.20.1
More information about the vlc-devel
mailing list