From 806ba4ee83979c79845b8f4083878c8127604967 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Fri, 11 Jan 2019 07:39:23 -0600 Subject: [PATCH] apps/nshlib/nsh_command.c: Fix a few long lines --- nshlib/nsh_command.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/nshlib/nsh_command.c b/nshlib/nsh_command.c index c46833928..dc88ede21 100644 --- a/nshlib/nsh_command.c +++ b/nshlib/nsh_command.c @@ -95,7 +95,8 @@ static int cmd_false(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv); static int cmd_exit(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv); #endif -static int cmd_unrecognized(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv); +static int cmd_unrecognized(FAR struct nsh_vtbl_s *vtbl, int argc, + char **argv); /**************************************************************************** * Private Data @@ -597,7 +598,9 @@ static inline void help_cmdlist(FAR struct nsh_vtbl_s *vtbl) for (i = 0; i < NUM_CMD_ROWS; i++) { nsh_output(vtbl, " "); - for (j = 0, k = i; j < CMDS_PER_LINE && k < NUM_CMDS; j++, k += NUM_CMD_ROWS) + for (j = 0, k = i; + j < CMDS_PER_LINE && k < NUM_CMDS; + j++, k += NUM_CMD_ROWS) { #ifdef CONFIG_NOPRINTF_FIELDWIDTH nsh_output(vtbl, "%s\t", g_cmdmap[k].cmd); @@ -857,7 +860,8 @@ static int cmd_help(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv) * Name: cmd_unrecognized ****************************************************************************/ -static int cmd_unrecognized(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv) +static int cmd_unrecognized(FAR struct nsh_vtbl_s *vtbl, int argc, + char **argv) { nsh_error(vtbl, g_fmtcmdnotfound, argv[0]); return ERROR;