ash: [VAR] Remove setvarsafe
authorDenys Vlasenko <vda.linux@googlemail.com>
Wed, 26 Oct 2016 15:54:32 +0000 (17:54 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Wed, 26 Oct 2016 15:54:32 +0000 (17:54 +0200)
commitdbef38a74b825c15dcce737fab51c594d93b6d59
tree32a8071cbb79207fa8cd4e2262ab9ba3fa8641dd
parent35c2a136cd74402932d94ca69bd5f69ca900d83f
ash: [VAR] Remove setvarsafe

Upstream commit:

    Date: Sat, 6 Oct 2007 21:18:58 +0800
    [VAR] Remove setvarsafe

    The only user of setvarsafe is getopts.  However, we can achieve the same
    result by pre-setting the value of shellparam.optind.

function                                             old     new   delta
getoptscmd                                           614     515     -99
setvarsafe                                           147       -    -147
------------------------------------------------------------------------------
(add/remove: 0/1 grow/shrink: 0/1 up/down: 0/-246)           Total: -246 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
shell/ash.c