summaryrefslogtreecommitdiff
path: root/sql/sql_array.h
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2018-12-06 00:48:41 +0100
committerSergei Golubchik <serg@mariadb.org>2018-12-06 14:22:07 +0100
commiteed0013bedcf13b2f95acfa793626e758dd0489b (patch)
treec297006b66e4b9774259075bbdb840e626f07b08 /sql/sql_array.h
parent8a37ce07672df44d06c0ea7b66e0c3136b1e6ab0 (diff)
downloadmariadb-git-eed0013bedcf13b2f95acfa793626e758dd0489b.tar.gz
correct order of arguments for Dynamic_array<>::CMP_FUNC2
Diffstat (limited to 'sql/sql_array.h')
-rw-r--r--sql/sql_array.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_array.h b/sql/sql_array.h
index 37e86008ef0..c18bec1df52 100644
--- a/sql/sql_array.h
+++ b/sql/sql_array.h
@@ -239,7 +239,7 @@ public:
my_qsort(array.buffer, array.elements, sizeof(Elem), (qsort_cmp)cmp_func);
}
- typedef int (*CMP_FUNC2)(const Elem *el1, const Elem *el2, void *);
+ typedef int (*CMP_FUNC2)(void *, const Elem *el1, const Elem *el2);
void sort(CMP_FUNC2 cmp_func, void *data)
{
my_qsort2(array.buffer, array.elements, sizeof(Elem), (qsort2_cmp)cmp_func, data);