mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-08 22:17:23 +00:00
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
1 changed files with 2 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue