Cosmetic clean-up in preparation for TCP write buffering change

This commit is contained in:
Gregory Nutt 2014-01-13 08:21:18 -06:00
parent 3698289943
commit b889cae796
2 changed files with 9 additions and 1 deletions

View File

@ -188,6 +188,7 @@ int cmd_mb(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv)
nsh_output(vtbl, "\n", *ptr); nsh_output(vtbl, "\n", *ptr);
} }
} }
return ret; return ret;
} }
#endif #endif
@ -241,6 +242,7 @@ int cmd_mh(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv)
nsh_output(vtbl, "\n", *ptr); nsh_output(vtbl, "\n", *ptr);
} }
} }
return ret; return ret;
} }
#endif #endif
@ -286,6 +288,7 @@ int cmd_mw(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv)
nsh_output(vtbl, "\n", *ptr); nsh_output(vtbl, "\n", *ptr);
} }
} }
return ret; return ret;
} }
#endif #endif
@ -327,6 +330,7 @@ void nsh_dumpbuffer(FAR struct nsh_vtbl_s *vtbl, const char *msg,
sprintf(&line[strlen(line)], "%c", ch >= 0x20 && ch <= 0x7e ? ch : '.'); sprintf(&line[strlen(line)], "%c", ch >= 0x20 && ch <= 0x7e ? ch : '.');
} }
} }
nsh_output(vtbl, "%s\n", line); nsh_output(vtbl, "%s\n", line);
} }
} }

View File

@ -143,14 +143,17 @@ static FAR char *nsh_filecat(FAR struct nsh_vtbl_s *vtbl, FAR char *s1,
static FAR char *nsh_cmdparm(FAR struct nsh_vtbl_s *vtbl, FAR char *cmdline, static FAR char *nsh_cmdparm(FAR struct nsh_vtbl_s *vtbl, FAR char *cmdline,
FAR char **allocation); FAR char **allocation);
#endif #endif
#ifdef CONFIG_NSH_ARGCAT #ifdef CONFIG_NSH_ARGCAT
static FAR char *nsh_strcat(FAR struct nsh_vtbl_s *vtbl, FAR char *s1, static FAR char *nsh_strcat(FAR struct nsh_vtbl_s *vtbl, FAR char *s1,
FAR const char *s2); FAR const char *s2);
#endif #endif
#ifndef CONFIG_DISABLE_ENVIRON #ifndef CONFIG_DISABLE_ENVIRON
static FAR char *nsh_envexpand(FAR struct nsh_vtbl_s *vtbl, static FAR char *nsh_envexpand(FAR struct nsh_vtbl_s *vtbl,
FAR char *varname); FAR char *varname);
#endif #endif
static FAR char *nsh_argexpand(FAR struct nsh_vtbl_s *vtbl, FAR char *cmdline, static FAR char *nsh_argexpand(FAR struct nsh_vtbl_s *vtbl, FAR char *cmdline,
FAR char **allocation); FAR char **allocation);
static FAR char *nsh_argument(FAR struct nsh_vtbl_s *vtbl, char **saveptr, static FAR char *nsh_argument(FAR struct nsh_vtbl_s *vtbl, char **saveptr,
@ -171,6 +174,7 @@ static int nsh_nice(FAR struct nsh_vtbl_s *vtbl, FAR char **ppcmd,
static int nsh_parse_cmdparm(FAR struct nsh_vtbl_s *vtbl, FAR char *cmdline, static int nsh_parse_cmdparm(FAR struct nsh_vtbl_s *vtbl, FAR char *cmdline,
FAR const char *redirfile); FAR const char *redirfile);
#endif #endif
static int nsh_parse_command(FAR struct nsh_vtbl_s *vtbl, FAR char *cmdline); static int nsh_parse_command(FAR struct nsh_vtbl_s *vtbl, FAR char *cmdline);
/**************************************************************************** /****************************************************************************
@ -1001,7 +1005,7 @@ static FAR char *nsh_argexpand(FAR struct nsh_vtbl_s *vtbl, FAR char *cmdline,
FAR char *result; FAR char *result;
FAR char *rptr; FAR char *rptr;
/* Replace the backqutote with a NUL terminator and add the /* Replace the backquote with a NUL terminator and add the
* intervening character to the concatenated string. * intervening character to the concatenated string.
*/ */