diff options
Diffstat (limited to 'src/resolve/resolved-dns-trust-anchor.c')
-rw-r--r-- | src/resolve/resolved-dns-trust-anchor.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/resolve/resolved-dns-trust-anchor.c b/src/resolve/resolved-dns-trust-anchor.c index bf5b07cdd3..dc6b746189 100644 --- a/src/resolve/resolved-dns-trust-anchor.c +++ b/src/resolve/resolved-dns-trust-anchor.c @@ -464,10 +464,8 @@ static int dns_trust_anchor_load_files( return 0; } -static int domain_name_cmp(const void *a, const void *b) { - char **x = (char**) a, **y = (char**) b; - - return dns_name_compare_func(*x, *y); +static int domain_name_cmp(char * const *a, char * const *b) { + return dns_name_compare_func(*a, *b); } static int dns_trust_anchor_dump(DnsTrustAnchor *d) { @@ -497,7 +495,7 @@ static int dns_trust_anchor_dump(DnsTrustAnchor *d) { if (!l) return log_oom(); - qsort_safe(l, set_size(d->negative_by_name), sizeof(char*), domain_name_cmp); + typesafe_qsort(l, set_size(d->negative_by_name), domain_name_cmp); j = strv_join(l, " "); if (!j) |