* If it takes longer, the system is mis-configured and the network is not
* working properly, so...
*/
- int status;
struct timespec timeout = { 0, 100000000 };
struct gaicb *reqs[1];
reqs[0] = mutt_mem_calloc(1, sizeof(*reqs[0]));
if (getaddrinfo_a(GAI_NOWAIT, reqs, 1, NULL) == 0)
{
gai_suspend((const struct gaicb *const *) reqs, 1, &timeout);
- status = gai_error(reqs[0]);
+ const int status = gai_error(reqs[0]);
if (status == 0)
h = reqs[0]->ar_result;
else if (status == EAI_INPROGRESS)