netdb: A few build fixes
This commit is contained in:
parent
99a9e2bf3d
commit
6b48f8b397
@ -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;
|
||||
}
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user