apps/nshlib: nsh_readfile() should not be marked as static
This commit is contained in:
parent
631c9cec12
commit
88d3ac1c92
@ -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
|
||||
|
||||
/****************************************************************************
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user