apps/nshlib: nsh_readfile() should not be marked as static

This commit is contained in:
Gregory Nutt 2015-11-28 11:39:50 -06:00
parent 631c9cec12
commit 88d3ac1c92
2 changed files with 4 additions and 6 deletions

View File

@ -1233,9 +1233,8 @@ int nsh_catfile(FAR struct nsh_vtbl_s *vtbl, FAR const char *cmd,
****************************************************************************/
#ifdef NSH_HAVE_READFILE
static int nsh_readfile(FAR struct nsh_vtbl_s *vtbl, FAR const char *cmd,
FAR const char *filepath, FAR char *buffer,
size_t buflen);
int nsh_readfile(FAR struct nsh_vtbl_s *vtbl, FAR const char *cmd,
FAR const char *filepath, FAR char *buffer, size_t buflen);
#endif
/****************************************************************************

View File

@ -205,9 +205,8 @@ int nsh_catfile(FAR struct nsh_vtbl_s *vtbl, FAR const char *cmd,
****************************************************************************/
#ifdef NSH_HAVE_READFILE
static int nsh_readfile(FAR struct nsh_vtbl_s *vtbl, FAR const char *cmd,
FAR const char *filepath, FAR char *buffer,
size_t buflen)
int nsh_readfile(FAR struct nsh_vtbl_s *vtbl, FAR const char *cmd,
FAR const char *filepath, FAR char *buffer, size_t buflen)
{
FAR char *bufptr;
size_t remaining;