mirror of
https://github.com/apache/nuttx-apps.git
synced 2025-10-21 06:11:35 +08:00
apps/nshlib: Eliminate more new warnings found in build testing.
This commit is contained in:
@@ -159,7 +159,7 @@ static FAR char *nsh_strchr(FAR const char *str, int ch);
|
||||
#endif
|
||||
|
||||
#ifdef NSH_HAVE_VARS
|
||||
static FAR const char *nsh_envexpand(FAR struct nsh_vtbl_s *vtbl,
|
||||
static FAR char *nsh_envexpand(FAR struct nsh_vtbl_s *vtbl,
|
||||
FAR char *varname);
|
||||
#endif
|
||||
|
||||
@@ -1014,8 +1014,7 @@ static FAR char *nsh_strchr(FAR const char *str, int ch)
|
||||
****************************************************************************/
|
||||
|
||||
#ifdef NSH_HAVE_VARS
|
||||
static FAR const char *nsh_envexpand(FAR struct nsh_vtbl_s *vtbl,
|
||||
FAR char *varname)
|
||||
static FAR char *nsh_envexpand(FAR struct nsh_vtbl_s *vtbl, FAR char *varname)
|
||||
{
|
||||
/* Check for built-in variables */
|
||||
|
||||
@@ -1032,7 +1031,7 @@ static FAR const char *nsh_envexpand(FAR struct nsh_vtbl_s *vtbl,
|
||||
}
|
||||
else
|
||||
{
|
||||
FAR const char *value;
|
||||
FAR char *value;
|
||||
|
||||
#ifdef CONFIG_NSH_VARS
|
||||
/* Not a built-in? Return the value of the NSH variable with this
|
||||
|
Reference in New Issue
Block a user