diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2020-11-28 13:26:44 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2020-11-28 13:27:36 +0100 |
commit | 885121e25db2ec9a8191a406085d91790a133d20 (patch) | |
tree | aa5c89af1b273c618bef11b836de38788007b4c9 /include | |
parent | fc6faac84e978c9482106f53e711ab971a0ce188 (diff) | |
download | busybox-w32-885121e25db2ec9a8191a406085d91790a133d20.tar.gz busybox-w32-885121e25db2ec9a8191a406085d91790a133d20.tar.bz2 busybox-w32-885121e25db2ec9a8191a406085d91790a133d20.zip |
libbb: change decode_base32/64 API to return the end of _dst_, not _src_.
function old new delta
decode_base64 173 178 +5
read_base64 222 220 -2
decode_base32 186 182 -4
handle_incoming_and_exit 2263 2239 -24
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/3 up/down: 5/-30) Total: -25 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/libbb.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/libbb.h b/include/libbb.h index ef4a34f07..e56fff3e8 100644 --- a/include/libbb.h +++ b/include/libbb.h | |||
@@ -2035,8 +2035,8 @@ enum { | |||
2035 | /* Sign-extends to a value which never matches fgetc result: */ | 2035 | /* Sign-extends to a value which never matches fgetc result: */ |
2036 | BASE64_FLAG_NO_STOP_CHAR = 0x80, | 2036 | BASE64_FLAG_NO_STOP_CHAR = 0x80, |
2037 | }; | 2037 | }; |
2038 | const char *decode_base64(char **pp_dst, const char *src) FAST_FUNC; | 2038 | char *decode_base64(char *dst, const char **pp_src) FAST_FUNC; |
2039 | const char *decode_base32(char **pp_dst, const char *src) FAST_FUNC; | 2039 | char *decode_base32(char *dst, const char **pp_src) FAST_FUNC; |
2040 | void read_base64(FILE *src_stream, FILE *dst_stream, int flags) FAST_FUNC; | 2040 | void read_base64(FILE *src_stream, FILE *dst_stream, int flags) FAST_FUNC; |
2041 | 2041 | ||
2042 | typedef struct md5_ctx_t { | 2042 | typedef struct md5_ctx_t { |