summaryrefslogtreecommitdiff
path: root/shell/msh.c
diff options
context:
space:
mode:
authorDenis Vlasenko2006-12-24 15:23:28 +0000
committerDenis Vlasenko2006-12-24 15:23:28 +0000
commit0ee3999d13b662d233dfc7decdd4d691cd66fdda (patch)
tree283bf4908f787f50a90cb84c014a580485307a9b /shell/msh.c
parent7cea262273659e9894d446a3f9ea6b83fb18892a (diff)
downloadbusybox-0ee3999d13b662d233dfc7decdd4d691cd66fdda.zip
busybox-0ee3999d13b662d233dfc7decdd4d691cd66fdda.tar.gz
random tiny size savings
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 45ca3df..d4f5345 100644
--- a/shell/msh.c
+++ b/shell/msh.c
@@ -3243,8 +3243,8 @@ static int dohelp(struct op *t)
int col;
const struct builtincmd *x;
- printf("\nBuilt-in commands:\n");
- printf("-------------------\n");
+ puts("\nBuilt-in commands:\n"
+ "-------------------");
for (col = 0, x = builtincmds; x->builtinfunc != NULL; x++) {
if (!x->name)
@@ -3259,8 +3259,6 @@ static int dohelp(struct op *t)
{
int i;
const struct BB_applet *applet;
- extern const struct BB_applet applets[];
- extern const size_t NUM_APPLETS;
for (i = 0, applet = applets; i < NUM_APPLETS; applet++, i++) {
if (!applet->name)
@@ -3274,7 +3272,7 @@ static int dohelp(struct op *t)
}
}
#endif
- printf("\n\n");
+ puts("\n");
return EXIT_SUCCESS;
}