diff options
author | NIIBE Yutaka <gniibe@fsij.org> | 2016-01-12 02:32:20 +0100 |
---|---|---|
committer | NIIBE Yutaka <gniibe@fsij.org> | 2016-01-12 02:32:20 +0100 |
commit | 3f52c7da3940ec06572270d511000dc7fe9c27d2 (patch) | |
tree | ef43ad8f5c7f9a1eee402f5444f71114d83ccaae /g10/compress-bz2.c | |
parent | gpg: Move documentation from keydb.h to keydb.c and getkey.c. (diff) | |
download | gnupg2-3f52c7da3940ec06572270d511000dc7fe9c27d2.tar.xz gnupg2-3f52c7da3940ec06572270d511000dc7fe9c27d2.zip |
common: Fix iobuf API of filter function for alignment.
* common/iobuf.h (IOBUFCTRL_DESC): Change the call semantics.
* common/iobuf.c (iobuf_desc): Add the second argument DESC.
(print_chain, iobuf_close, do_open, iobuf_sockopen, iobuf_ioctl)
(iobuf_push_filter2, pop_filter, iobuf_write_temp): Change calls
of iobuf_desc.
(file_filter, file_es_filter, sock_filter, block_filter): Fill the
description.
* common/t-iobuf.c (every_other_filter, double_filter): Likewise.
* g10/armor.c, g10/cipher.c, g10/compress-bz2.c, g10/compress.c,
g10/decrypt-data.c, g10/encrypt.c, g10/mdfilter.c, g10/progress.c,
g10/textfilter.c: Likewise.
--
Newer GCC warns against possible alignment difference of pointers.
This change can silence those warnings.
Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
Diffstat (limited to 'g10/compress-bz2.c')
-rw-r--r-- | g10/compress-bz2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/g10/compress-bz2.c b/g10/compress-bz2.c index ea80956c3..128eadff1 100644 --- a/g10/compress-bz2.c +++ b/g10/compress-bz2.c @@ -248,6 +248,6 @@ compress_filter_bz2( void *opaque, int control, zfx->release (zfx); } else if( control == IOBUFCTRL_DESC ) - *(char**)buf = "compress_filter"; + mem2str (buf, "compress_filter", *ret_len); return rc; } |