summaryrefslogtreecommitdiffstats
path: root/apps/nshlib
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2015-03-15 12:22:12 -0600
committerGregory Nutt <gnutt@nuttx.org>2015-03-15 12:22:12 -0600
commit88fb59990a4cf35744eec66840a5894c0c3d2f93 (patch)
tree473895b860bf709b42f2d7b858c0d2a280d2bcb7 /apps/nshlib
parentd8f9c391d0ab40f0d83e5263ea868cbf84a2ed6f (diff)
Costmetic changes name while debugging a filename issue
Diffstat (limited to 'apps/nshlib')
-rw-r--r--apps/nshlib/nsh_fscmds.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/apps/nshlib/nsh_fscmds.c b/apps/nshlib/nsh_fscmds.c
index afde1e1c1e..570ffa7764 100644
--- a/apps/nshlib/nsh_fscmds.c
+++ b/apps/nshlib/nsh_fscmds.c
@@ -168,7 +168,8 @@ static char *nsh_getdirpath(const char *path, const char *file)
****************************************************************************/
#if CONFIG_NFILE_DESCRIPTORS > 0
-static int foreach_direntry(FAR struct nsh_vtbl_s *vtbl, const char *cmd, const char *dirpath,
+static int foreach_direntry(FAR struct nsh_vtbl_s *vtbl, FAR const char *cmd,
+ FAR const char *dirpath,
direntry_handler_t handler, void *pvarg)
{
DIR *dirp;
@@ -196,7 +197,7 @@ static int foreach_direntry(FAR struct nsh_vtbl_s *vtbl, const char *cmd, const
for (;;)
{
- struct dirent *entryp = readdir(dirp);
+ FAR struct dirent *entryp = readdir(dirp);
if (!entryp)
{
/* Finished with this directory */
@@ -244,7 +245,7 @@ static int ls_handler(FAR struct nsh_vtbl_s *vtbl, FAR const char *dirpath,
/* Check if any options will require that we stat the file */
- if ((lsflags & (LSFLAGS_SIZE|LSFLAGS_LONG)) != 0)
+ if ((lsflags & (LSFLAGS_SIZE | LSFLAGS_LONG)) != 0)
{
struct stat buf;