libc/netdb: Fix nxstyle issue

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao
2020-03-30 20:49:28 +08:00
committed by patacongo
parent d8b5362380
commit 15fac7743c
15 changed files with 121 additions and 127 deletions
+1 -1
View File
@@ -311,7 +311,7 @@ int lib_hostfile_lookup(FAR const void *addr, socklen_t len, int type,
goto errorout_with_stream;
}
}
else if (nread > 0 && len == host->h_length && type == host->h_addrtype)
else if (len == host->h_length && type == host->h_addrtype)
{
/* We successfully read the entry and the type and size of the
* address is good. Now compare the addresses: