libbb: move common code into run_applet_and_exit
authorRon Yorston <rmy@pobox.com>
Tue, 7 Jun 2016 11:12:07 +0000 (12:12 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Sun, 19 Jun 2016 13:16:27 +0000 (15:16 +0200)
commitce824aecf216536beed00d7817a614ffb8572239
tree2c511d4cfa1d7b62a26a032a152a9d8879b228e4
parentba12081a9e9b2d90d1924546bc9097abf52cf2b5
libbb: move common code into run_applet_and_exit

Both calls to run_applet_and_exit are followed by the same code
to print an error message and return status 127.  Remove this
duplication and make run_applet_and_exit static.

function                                             old     new   delta
run_applet_and_exit                                  675     667      -8
main                                                 119      92     -27
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 0/2 up/down: 0/-35)             Total: -35 bytes

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