libc/netdb: Change the fopen mode from "rt" to "r"

since the text mode is the default

Change-Id: If4df0c69d998a36df541a968d14fc4d6e159db57
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2020-03-28 23:19:17 +08:00 committed by patacongo
parent 64a230df7a
commit 35b98f2361

View File

@ -101,7 +101,7 @@ int dns_foreach_nameserver(dns_callback_t callback, FAR void *arg)
/* Open the resolver configuration file */
stream = fopen(CONFIG_NETDB_RESOLVCONF_PATH, "rb");
stream = fopen(CONFIG_NETDB_RESOLVCONF_PATH, "r");
if (stream == NULL)
{
ret = -errno;