Fixes this harmless warning:
../src/types.c:459:7: warning: the comparison will always evaluate as 'true' for the address of 'sortlist' will never be NULL [-Waddress]
* Disable debugging output to stderr from adns_addr2text
and adns_text2addr.
+ * Fix a harmelss compiler warning about sortlist never being NULL.
--
static int dip_sockaddr(adns_state ads,
const struct sockaddr *sa,
const struct sockaddr *sb) {
- if (!ads->sortlist) return 0;
return search_sortlist_sa(ads, sa) > search_sortlist_sa(ads, sb);
}