aboutsummaryrefslogtreecommitdiff
path: root/shell/msh.c
diff options
context:
space:
mode:
Diffstat (limited to 'shell/msh.c')
-rw-r--r--shell/msh.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/shell/msh.c b/shell/msh.c
index 45ca3df81..d4f534551 100644
--- a/shell/msh.c
+++ b/shell/msh.c
@@ -3243,8 +3243,8 @@ static int dohelp(struct op *t)
3243 int col; 3243 int col;
3244 const struct builtincmd *x; 3244 const struct builtincmd *x;
3245 3245
3246 printf("\nBuilt-in commands:\n"); 3246 puts("\nBuilt-in commands:\n"
3247 printf("-------------------\n"); 3247 "-------------------");
3248 3248
3249 for (col = 0, x = builtincmds; x->builtinfunc != NULL; x++) { 3249 for (col = 0, x = builtincmds; x->builtinfunc != NULL; x++) {
3250 if (!x->name) 3250 if (!x->name)
@@ -3259,8 +3259,6 @@ static int dohelp(struct op *t)
3259 { 3259 {
3260 int i; 3260 int i;
3261 const struct BB_applet *applet; 3261 const struct BB_applet *applet;
3262 extern const struct BB_applet applets[];
3263 extern const size_t NUM_APPLETS;
3264 3262
3265 for (i = 0, applet = applets; i < NUM_APPLETS; applet++, i++) { 3263 for (i = 0, applet = applets; i < NUM_APPLETS; applet++, i++) {
3266 if (!applet->name) 3264 if (!applet->name)
@@ -3274,7 +3272,7 @@ static int dohelp(struct op *t)
3274 } 3272 }
3275 } 3273 }
3276#endif 3274#endif
3277 printf("\n\n"); 3275 puts("\n");
3278 return EXIT_SUCCESS; 3276 return EXIT_SUCCESS;
3279} 3277}
3280 3278