[Pkg-gnupg-commit] [gnupg2] 29/42: gpg: Simplify cipher:write_header.
Daniel Kahn Gillmor
dkg at fifthhorseman.net
Wed Jan 3 18:25:55 UTC 2018
This is an automated email from the git hooks/post-receive script.
dkg pushed a commit to branch upstream
in repository gnupg2.
commit b5333e13cbc9db354ed90762190bf70605a02d1f
Author: Werner Koch <wk at gnupg.org>
Date: Wed Dec 13 11:58:51 2017 +0100
gpg: Simplify cipher:write_header.
* g10/cipher.c (write_header): Use write_status_printf.
Signed-off-by: Werner Koch <wk at gnupg.org>
---
g10/cipher.c | 8 ++------
1 file changed, 2 insertions(+), 6 deletions(-)
diff --git a/g10/cipher.c b/g10/cipher.c
index 2677989..409d0ad 100644
--- a/g10/cipher.c
+++ b/g10/cipher.c
@@ -65,12 +65,8 @@ write_header (cipher_filter_context_t *cfx, iobuf_t a)
gcry_md_debug (cfx->mdc_hash, "creatmdc");
}
- {
- char buf[20];
-
- snprintf (buf, sizeof buf, "%d %d", ed.mdc_method, cfx->dek->algo);
- write_status_text (STATUS_BEGIN_ENCRYPTION, buf);
- }
+ write_status_printf (STATUS_BEGIN_ENCRYPTION, "%d %d",
+ ed.mdc_method, cfx->dek->algo);
init_packet (&pkt);
pkt.pkttype = cfx->dek->use_mdc? PKT_ENCRYPTED_MDC : PKT_ENCRYPTED;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-gnupg/gnupg2.git
More information about the Pkg-gnupg-commit
mailing list