mirror of
https://github.com/samba-team/samba.git
synced 2025-01-08 21:18:16 +03:00
gensec: sort_gensec uses NUMERIC_CMP
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
75682e397b
commit
acaa1323d0
@ -1103,7 +1103,7 @@ _PUBLIC_ const struct gensec_critical_sizes *gensec_interface_version(void)
|
||||
}
|
||||
|
||||
static int sort_gensec(const struct gensec_security_ops **gs1, const struct gensec_security_ops **gs2) {
|
||||
return (*gs2)->priority - (*gs1)->priority;
|
||||
return NUMERIC_CMP((*gs2)->priority, (*gs1)->priority);
|
||||
}
|
||||
|
||||
int gensec_setting_int(struct gensec_settings *settings, const char *mechanism, const char *name, int default_value)
|
||||
|
Loading…
Reference in New Issue
Block a user