diff options
author | Rodrigo Arias Mallo <rodarima@gmail.com> | 2024-07-28 16:35:51 +0200 |
---|---|---|
committer | Rodrigo Arias Mallo <rodarima@gmail.com> | 2024-08-07 16:50:43 +0200 |
commit | 4d51150ca0aae979718ac10030df85421b763cd1 (patch) | |
tree | a824a83feefca6695fbe1072b3d724290b07af1f /src/dns.c | |
parent | a9950b3aca2a264e0ee1da1e2a29d3be11e6606c (diff) |
Make Dillo C99 standard compliant
Reviewed-by: dogma
Diffstat (limited to 'src/dns.c')
-rw-r--r-- | src/dns.c | 12 |
1 files changed, 1 insertions, 11 deletions
@@ -288,17 +288,7 @@ static void *Dns_server(void *data) if (error != 0) { dns_server[channel].status = error; - if (error == EAI_NONAME) - MSG("DNS error: HOST_NOT_FOUND\n"); - else if (error == EAI_AGAIN) - MSG("DNS error: TRY_AGAIN\n"); -#ifdef EAI_NODATA - /* Some FreeBSD don't have this anymore */ - else if (error == EAI_NODATA) - MSG("DNS error: NO_ADDRESS\n"); -#endif - else if (h_errno == EAI_FAIL) - MSG("DNS error: NO_RECOVERY\n"); + MSG("DNS error: %s\n", gai_strerror(error)); } else { Dns_note_hosts(hosts, res0); dns_server[channel].status = 0; |