diff options
author | Denys Vlasenko | 2018-07-31 17:30:08 +0200 |
---|---|---|
committer | Denys Vlasenko | 2018-07-31 17:30:08 +0200 |
commit | 8d634a08c4164da3a0d93caa9de825384e59d27d (patch) | |
tree | cfabe15456c00a6582a3b279388128faad013f6d /mailutils/mail.h | |
parent | f28b8857a9fa7b2b137a19ce7069077da5706d78 (diff) | |
download | busybox-8d634a08c4164da3a0d93caa9de825384e59d27d.zip busybox-8d634a08c4164da3a0d93caa9de825384e59d27d.tar.gz |
sendfile: code shrink
function old new delta
printstr_base64 - 22 +22
printbuf_base64 - 11 +11
printfile_base64 - 9 +9
makemime_main 305 294 -11
encode_n_base64 236 223 -13
sendmail_main 1380 1366 -14
encode_base64 36 - -36
------------------------------------------------------------------------------
(add/remove: 3/1 grow/shrink: 0/3 up/down: 42/-74) Total: -32 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'mailutils/mail.h')
-rw-r--r-- | mailutils/mail.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/mailutils/mail.h b/mailutils/mail.h index 4eb2bc2..b14228a 100644 --- a/mailutils/mail.h +++ b/mailutils/mail.h @@ -34,5 +34,6 @@ void get_cred_or_die(int fd) FAST_FUNC; char *send_mail_command(const char *fmt, const char *param) FAST_FUNC; -void encode_base64(char *fname, const char *text, const char *eol) FAST_FUNC; -void encode_n_base64(char *fname, const char *text, size_t size, const char *eol) FAST_FUNC; +void printbuf_base64(const char *buf, unsigned len) FAST_FUNC; +void printstr_base64(const char *buf) FAST_FUNC; +void printfile_base64(const char *fname) FAST_FUNC; |