[Pkg-gnupg-commit] [gnupg2] 61/205: common: More accurately name function.
Daniel Kahn Gillmor
dkg at fifthhorseman.net
Wed May 11 08:38:16 UTC 2016
This is an automated email from the git hooks/post-receive script.
dkg pushed a commit to branch experimental
in repository gnupg2.
commit 903466e124841cb29f518afa6b7706d490737ac3
Author: Neal H. Walfield <neal at g10code.com>
Date: Tue Feb 23 20:36:07 2016 +0100
common: More accurately name function.
* common/iobuf.c (iobuf_set_partial_block_mode): Rename from this...
(iobuf_set_partial_body_length_mode): ... to this. Update callers.
--
Signed-off-by: Neal H. Walfield <neal at g10code.com>
---
common/iobuf.c | 2 +-
common/iobuf.h | 2 +-
g10/build-packet.c | 4 ++--
g10/parse-packet.c | 2 +-
4 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/common/iobuf.c b/common/iobuf.c
index f5bbfb2..6a9060a 100644
--- a/common/iobuf.c
+++ b/common/iobuf.c
@@ -2513,7 +2513,7 @@ iobuf_get_fname_nonnull (iobuf_t a)
* LEN is the first length byte on read, but ignored on writes.
*/
void
-iobuf_set_partial_block_mode (iobuf_t a, size_t len)
+iobuf_set_partial_body_length_mode (iobuf_t a, size_t len)
{
block_filter_ctx_t *ctx = xcalloc (1, sizeof *ctx);
diff --git a/common/iobuf.h b/common/iobuf.h
index 8ba02b3..785efdc 100644
--- a/common/iobuf.h
+++ b/common/iobuf.h
@@ -592,7 +592,7 @@ const char *iobuf_get_fname_nonnull (iobuf_t a);
length headers (see Section 4.2.2.4 of RFC 4880). Concretely, it
just returns / writes the data and finishes the packet with an
EOF. */
-void iobuf_set_partial_block_mode (iobuf_t a, size_t len);
+void iobuf_set_partial_body_length_mode (iobuf_t a, size_t len);
/* If PARTIAL is set, then read from the pipeline until the first EOF
is returned.
diff --git a/g10/build-packet.c b/g10/build-packet.c
index 4245208..4dec5b9 100644
--- a/g10/build-packet.c
+++ b/g10/build-packet.c
@@ -551,7 +551,7 @@ do_plaintext( IOBUF out, int ctb, PKT_plaintext *pt )
}
wipememory(buf,1000); /* burn the buffer */
if( (ctb&0x40) && !pt->len )
- iobuf_set_partial_block_mode(out, 0 ); /* turn off partial */
+ iobuf_set_partial_body_length_mode(out, 0 ); /* turn off partial */
if( pt->len && n != pt->len )
log_error("do_plaintext(): wrote %lu bytes but expected %lu bytes\n",
(ulong)n, (ulong)pt->len );
@@ -1334,7 +1334,7 @@ write_new_header( IOBUF out, int ctb, u32 len, int hdrlen )
if( iobuf_put(out, ctb ) )
return -1;
if( !len ) {
- iobuf_set_partial_block_mode(out, 512 );
+ iobuf_set_partial_body_length_mode(out, 512 );
}
else {
if( len < 192 ) {
diff --git a/g10/parse-packet.c b/g10/parse-packet.c
index 38cd8c9..1be49b1 100644
--- a/g10/parse-packet.c
+++ b/g10/parse-packet.c
@@ -581,7 +581,7 @@ parse (IOBUF inp, PACKET * pkt, int onlykeypkts, off_t * retpos,
case PKT_ENCRYPTED:
case PKT_ENCRYPTED_MDC:
case PKT_COMPRESSED:
- iobuf_set_partial_block_mode (inp, c & 0xff);
+ iobuf_set_partial_body_length_mode (inp, c & 0xff);
pktlen = 0; /* To indicate partial length. */
partial = 1;
break;
--
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