diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2015-03-15 12:22:12 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2015-03-15 12:22:12 -0600 |
commit | 88fb59990a4cf35744eec66840a5894c0c3d2f93 (patch) | |
tree | 473895b860bf709b42f2d7b858c0d2a280d2bcb7 /apps/nshlib/nsh_fscmds.c | |
parent | d8f9c391d0ab40f0d83e5263ea868cbf84a2ed6f (diff) | |
download | px4-nuttx-88fb59990a4cf35744eec66840a5894c0c3d2f93.tar.gz px4-nuttx-88fb59990a4cf35744eec66840a5894c0c3d2f93.tar.bz2 px4-nuttx-88fb59990a4cf35744eec66840a5894c0c3d2f93.zip |
Costmetic changes name while debugging a filename issue
Diffstat (limited to 'apps/nshlib/nsh_fscmds.c')
-rw-r--r-- | apps/nshlib/nsh_fscmds.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/apps/nshlib/nsh_fscmds.c b/apps/nshlib/nsh_fscmds.c index afde1e1c1..570ffa776 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; |