common: Fix iobuf API of filter function for alignment.
authorNIIBE Yutaka <gniibe@fsij.org>
Tue, 12 Jan 2016 01:32:20 +0000 (10:32 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Tue, 12 Jan 2016 01:32:20 +0000 (10:32 +0900)
commit3f52c7da3940ec06572270d511000dc7fe9c27d2
treeef43ad8f5c7f9a1eee402f5444f71114d83ccaae
parent0617a05eb5cb76b239700355d897eb7b49088bf1
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>
12 files changed:
common/iobuf.c
common/iobuf.h
common/t-iobuf.c
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