mirror of
https://github.com/samba-team/samba.git
synced 2025-01-24 02:04:21 +03:00
s4:dsdb:mod: repl_md: message sort uses NUMERIC_CMP()
No change at all in the result, just saving lines and branches. BUG: https://bugzilla.samba.org/show_bug.cgi?id=15625 Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
parent
c5c29f59fa
commit
827b0c39ed
@ -1077,10 +1077,7 @@ static int replmd_ldb_message_element_attid_sort(const struct ldb_message_elemen
|
||||
if (a2 == NULL) {
|
||||
return -1;
|
||||
}
|
||||
if (a1->attributeID_id == a2->attributeID_id) {
|
||||
return 0;
|
||||
}
|
||||
return a1->attributeID_id > a2->attributeID_id ? 1 : -1;
|
||||
return NUMERIC_CMP(a1->attributeID_id, a2->attributeID_id);
|
||||
}
|
||||
|
||||
static void replmd_ldb_message_sort(struct ldb_message *msg,
|
||||
|
Loading…
x
Reference in New Issue
Block a user