diff options
| author | Denys Vlasenko <vda.linux@googlemail.com> | 2025-07-07 18:03:10 +0200 |
|---|---|---|
| committer | Denys Vlasenko <vda.linux@googlemail.com> | 2025-07-07 18:03:10 +0200 |
| commit | e3484095f9fd48d771df4e49db8b6384b5219c21 (patch) | |
| tree | 5b127d6e1be6e08ce7253eacbae983acb2461976 /libbb | |
| parent | 5e9b95ff40de7e9b3395e51d456647ae99b2e8b2 (diff) | |
| download | busybox-w32-e3484095f9fd48d771df4e49db8b6384b5219c21.tar.gz busybox-w32-e3484095f9fd48d771df4e49db8b6384b5219c21.tar.bz2 busybox-w32-e3484095f9fd48d771df4e49db8b6384b5219c21.zip | |
libbb/yescrypt: code shrink
function old new delta
yescrypt_r 1063 1048 -15
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'libbb')
| -rw-r--r-- | libbb/yescrypt/alg-yescrypt-common.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libbb/yescrypt/alg-yescrypt-common.c b/libbb/yescrypt/alg-yescrypt-common.c index 262fe82fb..99e8b1277 100644 --- a/libbb/yescrypt/alg-yescrypt-common.c +++ b/libbb/yescrypt/alg-yescrypt-common.c | |||
| @@ -126,8 +126,8 @@ static const uint8_t *decode64( | |||
| 126 | *dstlen = dstpos; | 126 | *dstlen = dstpos; |
| 127 | dbg_dec64("dec64: OK, dst[%d]", (int)dstpos); | 127 | dbg_dec64("dec64: OK, dst[%d]", (int)dstpos); |
| 128 | return src; | 128 | return src; |
| 129 | fail: | 129 | fail: |
| 130 | *dstlen = 0; | 130 | /* *dstlen = 0; - not needed, caller detects error by seeing NULL */ |
| 131 | return NULL; | 131 | return NULL; |
| 132 | } | 132 | } |
| 133 | #else | 133 | #else |
| @@ -177,7 +177,7 @@ static const uint8_t *decode64( | |||
| 177 | dbg_dec64("dec64: OK, dst[%d]", (int)dstpos); | 177 | dbg_dec64("dec64: OK, dst[%d]", (int)dstpos); |
| 178 | return src; | 178 | return src; |
| 179 | } | 179 | } |
| 180 | fail: | 180 | fail: |
| 181 | /* *dstlen = 0; - not needed, caller detects error by seeing NULL */ | 181 | /* *dstlen = 0; - not needed, caller detects error by seeing NULL */ |
| 182 | return NULL; | 182 | return NULL; |
| 183 | } | 183 | } |
