diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2021-01-03 12:14:58 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2021-01-03 12:14:58 +0100 |
commit | 85158b600d161bea3fc9d62df8e4ecf4d642fbf0 (patch) | |
tree | 00cbd6e67e1ca0faa922b90ca0e8ae9a8fad86cf | |
parent | 3f8ec00b0c54790283cfec675716ef4b8e00bd8a (diff) | |
download | busybox-85158b600d161bea3fc9d62df8e4ecf4d642fbf0.tar.gz |
ash: code shrink
function old new delta
ash_main 1218 1202 -16
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | shell/ash.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/shell/ash.c b/shell/ash.c index f9d59e50e..e24b74c03 100644 --- a/shell/ash.c +++ b/shell/ash.c @@ -14312,9 +14312,9 @@ procargs(char **argv) } if (mflag == 2) mflag = iflag; + /* Unset options which weren't explicitly set or unset */ for (i = 0; i < NOPTS; i++) - if (optlist[i] == 2) - optlist[i] = 0; + optlist[i] &= 1; /* same effect as "if (optlist[i] == 2) optlist[i] = 0;" */ #if DEBUG == 2 debug = 1; #endif |