aboutsummaryrefslogtreecommitdiff
path: root/shell/ash.c
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2006-12-24 15:23:28 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2006-12-24 15:23:28 +0000
commit0ee3999d13b662d233dfc7decdd4d691cd66fdda (patch)
tree283bf4908f787f50a90cb84c014a580485307a9b /shell/ash.c
parent7cea262273659e9894d446a3f9ea6b83fb18892a (diff)
downloadbusybox-w32-0ee3999d13b662d233dfc7decdd4d691cd66fdda.tar.gz
busybox-w32-0ee3999d13b662d233dfc7decdd4d691cd66fdda.tar.bz2
busybox-w32-0ee3999d13b662d233dfc7decdd4d691cd66fdda.zip
random tiny size savings
Diffstat (limited to 'shell/ash.c')
-rw-r--r--shell/ash.c16
1 files changed, 5 insertions, 11 deletions
diff --git a/shell/ash.c b/shell/ash.c
index 2de61dad9..e8f7d30bd 100644
--- a/shell/ash.c
+++ b/shell/ash.c
@@ -11893,17 +11893,11 @@ static int helpcmd(int argc, char **argv)
11893 } 11893 }
11894 } 11894 }
11895#ifdef CONFIG_FEATURE_SH_STANDALONE_SHELL 11895#ifdef CONFIG_FEATURE_SH_STANDALONE_SHELL
11896 { 11896 for (i = 0; i < NUM_APPLETS; i++) {
11897 extern const struct BB_applet applets[]; 11897 col += out1fmt("%c%s", ((col == 0) ? '\t' : ' '), applets[i].name);
11898 extern const size_t NUM_APPLETS; 11898 if (col > 60) {
11899 11899 out1fmt("\n");
11900 for (i = 0; i < NUM_APPLETS; i++) { 11900 col = 0;
11901
11902 col += out1fmt("%c%s", ((col == 0) ? '\t' : ' '), applets[i].name);
11903 if (col > 60) {
11904 out1fmt("\n");
11905 col = 0;
11906 }
11907 } 11901 }
11908 } 11902 }
11909#endif 11903#endif