aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorLeonid Lisovskiy <lly.dev@gmail.com>2011-10-28 13:59:04 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2011-10-28 13:59:55 +0200
commit328f27fe447761f355104e7f524dc1115f16ca44 (patch)
tree1a8280c4cbc4458b89dda72c4d0c8f7402661355 /include
parentec447c7f01acb0e3abd9daa52a1b616be3f39484 (diff)
downloadbusybox-328f27fe447761f355104e7f524dc1115f16ca44.tar.gz
libbb: split decode_base64 off read_base64
function old new delta decode_base64 - 182 +182 read_base64 378 255 -123 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 0/1 up/down: 182/-123) Total: 59 bytes Signed-off-by: Leonid Lisovskiy <lly.dev@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'include')
-rw-r--r--include/libbb.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/libbb.h b/include/libbb.h
index d248781c3..791cdd94e 100644
--- a/include/libbb.h
+++ b/include/libbb.h
@@ -1591,7 +1591,8 @@ enum {
/* Sign-extends to a value which never matches fgetc result: */
BASE64_FLAG_NO_STOP_CHAR = 0x80,
};
-void FAST_FUNC read_base64(FILE *src_stream, FILE *dst_stream, int flags);
+const char *decode_base64(char **pp_dst, const char *src) FAST_FUNC;
+void read_base64(FILE *src_stream, FILE *dst_stream, int flags) FAST_FUNC;
typedef struct md5_ctx_t {
uint8_t wbuffer[64]; /* always correctly aligned for uint64_t */