gethostbyaddr_r: Fix an unsed variable warning
This commit is contained in:
parent
fc467021cf
commit
da48d912e4
1 changed files with 2 additions and 0 deletions
|
|
@ -384,7 +384,9 @@ int gethostbyaddr_r(FAR const void *addr, socklen_t len, int type,
|
|||
size_t buflen, FAR struct hostent **result,
|
||||
FAR int *h_errnop)
|
||||
{
|
||||
#if defined(CONFIG_NET_LOOPBACK) || defined(CONFIG_NETDB_HOSTFILE)
|
||||
struct hostent_s tmp;
|
||||
#endif
|
||||
int ret;
|
||||
|
||||
DEBUGASSERT(addr != NULL && host != NULL && buf != NULL);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue