Rewrite iteration through applet names to save a few bytes
authorRon Yorston <rmy@pobox.com>
Fri, 8 Apr 2016 10:57:20 +0000 (11:57 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Fri, 15 Apr 2016 20:13:51 +0000 (22:13 +0200)
commit2b91958dff0b7bae83cf2c3f2db55bd248fe0956
tree3b31eba78e93613ea307dde0fbd8995d47c15500
parente4d925b8899e38437311d2c63d0d0d200e04b5a1
Rewrite iteration through applet names to save a few bytes

function                                             old     new   delta
run_applet_and_exit                                  758     755      -3
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 0/1 up/down: 0/-3)               Total: -3 bytes

In standalone shell mode the saving increases to 17 bytes.

Signed-off-by: Ron Yorston <rmy@pobox.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
libbb/appletlib.c
libbb/lineedit.c
shell/ash.c