Fix typo but should be buf. From OrbitalFox

This commit is contained in:
OrbitalFox 2015-09-03 07:35:32 -06:00 committed by Gregory Nutt
parent 14297afb83
commit 381c587770

View File

@ -398,7 +398,7 @@ int gethostbyaddr_r(FAR const void *addr, socklen_t len, int type,
#ifdef CONFIG_NET_LOOPBACK
/* Check for the local loopback address */
if (lib_localhost(addr, len, type, host, but, buflen, h_errnop) == 0)
if (lib_localhost(addr, len, type, host, buf, buflen, h_errnop) == 0)
{
/* Yes.. we are done */
@ -417,7 +417,7 @@ int gethostbyaddr_r(FAR const void *addr, socklen_t len, int type,
/* Search the hosts file for a match */
return lib_hostfile_lookup(addr, len, type, host, but, buflen, h_errnop);
return lib_hostfile_lookup(addr, len, type, host, buf, buflen, h_errnop);
}
#endif /* CONFIG_NETDB_HOSTFILE */