mirror of
https://github.com/systemd/systemd.git
synced 2026-08-05 07:30:30 +00:00
dns-domain: use CMP() in dns_name_compare_func
This commit is contained in:
@@ -503,7 +503,7 @@ int dns_name_compare_func(const void *a, const void *b) {
|
||||
r = dns_label_unescape_suffix(a, &x, la, sizeof(la));
|
||||
q = dns_label_unescape_suffix(b, &y, lb, sizeof(lb));
|
||||
if (r < 0 || q < 0)
|
||||
return r - q;
|
||||
return CMP(r, q);
|
||||
|
||||
r = ascii_strcasecmp_nn(la, r, lb, q);
|
||||
if (r != 0)
|
||||
|
||||
Reference in New Issue
Block a user