Fix some builds and make the windows build actually succeed at resolving what I want.

This commit is contained in:
2024-08-07 22:25:38 -04:00
parent 8d277f029d
commit f621feb843
2 changed files with 15 additions and 14 deletions

View File

@ -2925,7 +2925,8 @@ static void _tf_ssb_update_seeds_work(tf_ssb_t* ssb, void* user_data)
{
ares_channel channel;
struct ares_options options = { .evsys = ARES_EVSYS_DEFAULT };
if (ares_init_options(&channel, &options, ARES_OPT_EVENT_THREAD) == ARES_SUCCESS)
int result = ares_init_options(&channel, &options, ARES_OPT_EVENT_THREAD);
if (result == ARES_SUCCESS)
{
if (ares_query_dnsrec(channel, ssb->seeds_host, ARES_CLASS_IN, ARES_REC_TYPE_TXT, _tf_ssb_update_seed_callback, user_data, NULL) == ARES_SUCCESS)
{