summaryrefslogtreecommitdiff
path: root/source3/web
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-02-14 10:03:55 +1100
committerAndrew Tridgell <tridge@samba.org>2010-02-14 18:44:21 +1100
commit862a17e9ba0aac382a4301d1d60c9d5ea4888959 (patch)
tree16c442cd16e2cee80056bb7309d4159862791582 /source3/web
parent3f0898a9f50a35ae94fda9b89809edae0cd9bbb3 (diff)
downloadsamba-862a17e9ba0aac382a4301d1d60c9d5ea4888959.tar.gz
samba-862a17e9ba0aac382a4301d1d60c9d5ea4888959.tar.bz2
samba-862a17e9ba0aac382a4301d1d60c9d5ea4888959.zip
s3: last part of TYPESAFE_QSORT() conversion
convert smbcacls, sharesec and web/
Diffstat (limited to 'source3/web')
-rw-r--r--source3/web/neg_lang.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/source3/web/neg_lang.c b/source3/web/neg_lang.c
index ae33dfc4ad..f897d10974 100644
--- a/source3/web/neg_lang.c
+++ b/source3/web/neg_lang.c
@@ -51,9 +51,8 @@ struct pri_list {
char *string;
};
-static int qsort_cmp_list(const void *x, const void *y) {
- struct pri_list *a = (struct pri_list *)x;
- struct pri_list *b = (struct pri_list *)y;
+static int qsort_cmp_list(struct pri_list *a, struct pri_list *b)
+{
if (a->pri > b->pri) return -1;
if (a->pri < b->pri) return 1;
return 0;
@@ -101,7 +100,7 @@ void web_set_lang(const char *lang_string)
}
TALLOC_FREE(lang_list);
- qsort(pl, lang_num, sizeof(struct pri_list), &qsort_cmp_list);
+ TYPESAFE_QSORT(pl, lang_num, qsort_cmp_list);
/* it's not an error to not initialise - we just fall back to
the default */