summaryrefslogtreecommitdiff
path: root/lib/util
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-02-14 09:58:13 +1100
committerAndrew Tridgell <tridge@samba.org>2010-02-14 18:44:20 +1100
commit76a7382346f0c9d945adf39da19d69616e2463b3 (patch)
tree1b3fbff54a24b2fa39cc12ea505aa3da7354f18d /lib/util
parentcebbc9a6f1a97aaee633b6eeb6d93faff6c0afb5 (diff)
downloadsamba-76a7382346f0c9d945adf39da19d69616e2463b3.tar.gz
samba-76a7382346f0c9d945adf39da19d69616e2463b3.tar.bz2
samba-76a7382346f0c9d945adf39da19d69616e2463b3.zip
lib: use TYPESAFE_QSORT() in lib/ and libcli/
Diffstat (limited to 'lib/util')
-rw-r--r--lib/util/util_strlist.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/util/util_strlist.c b/lib/util/util_strlist.c
index 6d1a695987..af733d10cc 100644
--- a/lib/util/util_strlist.c
+++ b/lib/util/util_strlist.c
@@ -20,6 +20,7 @@
#include "includes.h"
#include "system/locale.h"
+#include "lib/util/tsort.h"
#undef strcasecmp
@@ -393,7 +394,7 @@ _PUBLIC_ const char **str_list_unique(const char **list)
}
list2 = (const char **)talloc_memdup(list, list,
sizeof(list[0])*(len+1));
- qsort(list2, len, sizeof(list2[0]), QSORT_CAST list_cmp);
+ TYPESAFE_QSORT(list2, len, list_cmp);
list[0] = list2[0];
for (i=j=1;i<len;i++) {
if (strcmp(list2[i], list[j-1]) != 0) {