Changeset 745 for trunk/server/source3/web/neg_lang.c
- Timestamp:
- Nov 27, 2012, 4:43:17 PM (13 years ago)
- Location:
- trunk/server
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/server
- Property svn:mergeinfo changed
/vendor/current merged: 581,587,591,594,597,600,615,618,740
- Property svn:mergeinfo changed
-
trunk/server/source3/web/neg_lang.c
r414 r745 21 21 #include "includes.h" 22 22 #include "web/swat_proto.h" 23 #include "intl/lang_tdb.h" 23 24 24 25 /* … … 52 53 }; 53 54 54 static int qsort_cmp_list(const void *x, const void *y) { 55 struct pri_list *a = (struct pri_list *)x; 56 struct pri_list *b = (struct pri_list *)y; 55 static int qsort_cmp_list(struct pri_list *a, struct pri_list *b) 56 { 57 57 if (a->pri > b->pri) return -1; 58 58 if (a->pri < b->pri) return 1; … … 102 102 TALLOC_FREE(lang_list); 103 103 104 qsort(pl, lang_num, sizeof(struct pri_list), &qsort_cmp_list);104 TYPESAFE_QSORT(pl, lang_num, qsort_cmp_list); 105 105 106 106 /* it's not an error to not initialise - we just fall back to
Note:
See TracChangeset
for help on using the changeset viewer.