ash: move hashvar() calls into findvar()master
commit371fe9f71d445d18be28c82a2a6d82115c8af19d
authorRon Yorston <rmy@pobox.com>
Sat, 6 Apr 2024 08:50:42 +0000 (6 09:50 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Sat, 13 Jul 2024 23:12:54 +0000 (14 01:12 +0200)
tree5e0d3048ee2a64ec6efd2b334d1c072fd2e357c0
parente4b5ccd13bb59eaaec6aa7f22655cc469f8900a2
ash: move hashvar() calls into findvar()

dash has accepted a patch to remove the first argument of findvar().
It's commit e85e972 (var: move hashvar() calls into findvar()).

Apply the same change to BusyBox ash.

function                                             old     new   delta
findvar                                               35      40      +5
mklocal                                              268     261      -7
exportcmd                                            164     157      -7
setvareq                                             319     310      -9
lookupvar                                            150     141      -9
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/4 up/down: 5/-32)             Total: -27 bytes

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