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:
parent
64a230df7a
commit
35b98f2361
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user