diff options
author | Andrew Tridgell <tridge@samba.org> | 2010-02-13 13:01:22 +1100 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2010-02-13 22:36:12 +1100 |
commit | 1da87fc988d0660f9c868ec9350664a3f7f51942 (patch) | |
tree | fed9d508f5c86cf600699b4f5844b1b2d2e09d89 | |
parent | 700f4649511dbef417e639509d2f3374b5c8c6f3 (diff) | |
download | samba-1da87fc988d0660f9c868ec9350664a3f7f51942.tar.gz samba-1da87fc988d0660f9c868ec9350664a3f7f51942.tar.bz2 samba-1da87fc988d0660f9c868ec9350664a3f7f51942.zip |
s4-wrepl: use TYPESAFE_QSORT() in wins repl code
-rw-r--r-- | source4/wrepl_server/wrepl_in_call.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/wrepl_server/wrepl_in_call.c b/source4/wrepl_server/wrepl_in_call.c index a4f18ff2da..fd09bbaf40 100644 --- a/source4/wrepl_server/wrepl_in_call.c +++ b/source4/wrepl_server/wrepl_in_call.c @@ -30,6 +30,7 @@ #include "lib/ldb/include/ldb.h" #include "lib/ldb/include/ldb_errors.h" #include "system/time.h" +#include "lib/util/tsort.h" static NTSTATUS wreplsrv_in_start_association(struct wreplsrv_in_call *call) { @@ -300,7 +301,7 @@ static NTSTATUS wreplsrv_in_send_request(struct wreplsrv_in_call *call) } /* sort the names before we send them */ - qsort(names, j, sizeof(struct wrepl_wins_name), (comparison_fn_t)wreplsrv_in_sort_wins_name); + TYPESAFE_QSORT(names, j, wreplsrv_in_sort_wins_name); DEBUG(2,("WINSREPL:reply [%u] records owner[%s] min[%llu] max[%llu] to partner[%s]\n", j, owner_in->address, |