mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
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@g10code.com>
This commit is contained in:
parent
f7968db30b
commit
903466e124
4 changed files with 5 additions and 5 deletions
|
@ -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 ) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue