mirror of
https://github.com/apache/nuttx-apps.git
synced 2025-10-19 02:17:37 +08:00
Fixing coding style issues for rest of nshlib directory - except for the false +ve nsh_timcmds.c
This commit is contained in:

committed by
Alin Jerpelea

parent
0f4ad7dc5f
commit
3b884cfb87
@@ -204,7 +204,7 @@ int nsh_removevar(FAR struct console_stdio_s *pstate, FAR char *pair)
|
||||
* Name: nsh_getvar
|
||||
****************************************************************************/
|
||||
|
||||
FAR char *nsh_getvar(FAR struct nsh_vtbl_s *vtbl,FAR const char *name)
|
||||
FAR char *nsh_getvar(FAR struct nsh_vtbl_s *vtbl, FAR const char *name)
|
||||
{
|
||||
FAR struct console_stdio_s *pstate = (FAR struct console_stdio_s *)vtbl;
|
||||
FAR char *pair;
|
||||
@@ -258,8 +258,8 @@ int nsh_setvar(FAR struct nsh_vtbl_s *vtbl, FAR const char *name,
|
||||
nsh_removevar(pstate, pair);
|
||||
}
|
||||
|
||||
/* Get the size of the new name=value string. The +2 is for the '=' and for
|
||||
* null terminator
|
||||
/* Get the size of the new name=value string. The +2 is for the '=' and
|
||||
* for null terminator
|
||||
*/
|
||||
|
||||
varlen = strlen(name) + strlen(value) + 2;
|
||||
|
Reference in New Issue
Block a user