mirror of
https://github.com/apache/nuttx.git
synced 2026-09-03 23:52:58 +00:00
libc/netdb: Remove the temporary unlock in dns_foreach_nameserver
since netdb support the recursive lock Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
parent
a8cac59864
commit
cd695cd0d9
1 changed files with 0 additions and 4 deletions
|
|
@ -253,9 +253,7 @@ int dns_foreach_nameserver(dns_callback_t callback, FAR void *arg)
|
|||
|
||||
/* Perform the callback */
|
||||
|
||||
dns_semgive();
|
||||
ret = callback(arg, addr, sizeof(struct sockaddr_in));
|
||||
dns_semtake();
|
||||
}
|
||||
else
|
||||
#endif
|
||||
|
|
@ -274,9 +272,7 @@ int dns_foreach_nameserver(dns_callback_t callback, FAR void *arg)
|
|||
|
||||
/* Perform the callback */
|
||||
|
||||
dns_semgive();
|
||||
ret = callback(arg, addr, sizeof(struct sockaddr_in6));
|
||||
dns_semtake();
|
||||
}
|
||||
else
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue