Network procfs: procfs/net_procfs_route.c building error occur if CONFIG_NET_ROUTE is enabled. Fix suggested by Aleksandr Kazantsev

This commit is contained in:
Gregory Nutt 2017-08-22 10:21:07 -06:00
parent a099506b1b
commit 9a8c4121e5

View File

@ -787,12 +787,12 @@ static int route_stat(const char *relpath, struct stat *buf)
else
#endif
#ifdef CONFIG_NET_IPv6
if (strcmp(relpath, g_route_ipv6_path) == 0)
if (strcmp(relpath, g_route_ipv6_path) == 0)
{
buf->st_mode = S_IFREG | S_IROTH | S_IRGRP | S_IRUSR;
}
#endif
else
#endif
{
return -ENOENT;
}