netdb: A few build fixes

This commit is contained in:
YAMAMOTO Takashi 2021-01-27 16:43:01 +09:00 committed by Abdelatif Guettouche
parent 99a9e2bf3d
commit 6b48f8b397
2 changed files with 2 additions and 3 deletions

View File

@ -147,8 +147,7 @@ int dns_add_nameserver(FAR const struct sockaddr *addr, socklen_t addrlen)
else
#endif
{
nerr("ERROR: Unsupported family: %d\n",
g_dns_server.addr.sa_family);
nerr("ERROR: Unsupported family: %d\n", addr->sa_family);
ret = -ENOSYS;
goto errout;
}

View File

@ -224,7 +224,7 @@ int dns_foreach_nameserver(dns_callback_t callback, FAR void *arg)
else
#endif
{
nerr("ERROR: Unrecognized address: %s\n", addrstr)
nerr("ERROR: Unrecognized address: %s\n", addrstr);
ret = OK;
}
#ifdef CONFIG_NET_IPv6