From f81be29c2fbfba9f407d4b5d4c472ff4101436b7 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Sun, 15 Mar 2015 12:22:12 -0600 Subject: [PATCH] Costmetic changes name while debugging a filename issue --- nshlib/nsh_fscmds.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/nshlib/nsh_fscmds.c b/nshlib/nsh_fscmds.c index afde1e1c1..570ffa776 100644 --- a/nshlib/nsh_fscmds.c +++ b/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;