RESOLV: supress deprecation warnings #7592
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
In theory new API might be somewhat better.
But:
it's fairly new:
ares_search_dnsrec()
andares_query_dnsrec()
were introduced in c-ares-1.28 while even CentOS Stream 10 has
c-ares-1.25, so SSSD would need to support (fallback) old API anyway.
SSSD doesn't make heavy use of DNS, so potential performance
improvements are really negligible.
On the other hand, old API/ABI will be available for a long time:
c-ares/c-ares#732 (comment)
For those reasons it's not worth the effort to port code to new API
right now.