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:
parent
1c23a095ea
commit
757552e759
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user