Fix nsh_fscmds.c:92:19: error: unused function 'ls_specialdir' [-Werror,-Wunused-function]

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2022-10-30 00:56:32 +08:00 committed by Petro Karashchenko
parent 1c23a095ea
commit 757552e759

View File

@ -89,12 +89,14 @@
* Name: ls_specialdir
****************************************************************************/
#if !defined(CONFIG_NSH_DISABLE_LS)
static inline int ls_specialdir(FAR const char *dir)
{
/* '.' and '..' directories are not listed like normal directories */
return (strcmp(dir, ".") == 0 || strcmp(dir, "..") == 0);
}
#endif
/****************************************************************************
* Name: ls_handler