Home GnuPG
Diffusion GnuPG 3f52c7da3940

common: Fix iobuf API of filter function for alignment.
3f52c7da3940Unpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

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>

Details

Provenance
gniibeAuthored on Jan 12 2016, 2:32 AM
Parents
rG0617a05eb5cb: gpg: Move documentation from keydb.h to keydb.c and getkey.c.
Branches
Unknown
Tags
Unknown

Event Timeline

NIIBE Yutaka <gniibe@fsij.org> committed rG3f52c7da3940: common: Fix iobuf API of filter function for alignment. (authored by NIIBE Yutaka <gniibe@fsij.org>).Jan 12 2016, 2:32 AM