]> git.ipfire.org Git - thirdparty/dovecot/core.git/commit
lib: istream - more migration to i_stream_read_bytes()
authorPhil Carmody <phil@dovecot.fi>
Mon, 8 Feb 2016 17:26:20 +0000 (19:26 +0200)
committerGitLab <gitlab@git.dovecot.net>
Mon, 16 May 2016 18:21:58 +0000 (21:21 +0300)
commit573424407a2d3c1453638a643583a7cf10c129e1
tree553f05b58cbe7f89434f18534675b69be48316c3
parent534e41e436a7546f36f61e0dc49c0c191d850f6b
lib: istream - more migration to i_stream_read_bytes()

This time a coccinelle semantic patch, again hand checked:

   git grep 'i_stream_read_data' | sed s/:.*// | \
     while read f; do spatch --sp-file istream.cocci --in-place "$f" ; done

-- 8< --- istream.cocci ---
@@
expression e1, e2, e3, e4;
@@

- i_stream_read_data(e1, e2, e3, e4 - 1)
+ i_stream_read_bytes(e1, e2, e3, e4)

-- 8< --- end

Signed-off-by: Phil Carmody <phil@dovecot.fi>
src/lib-compression/compression.c
src/lib-compression/istream-lz4.c
src/lib-compression/istream-zlib.c
src/lib-fs/fs-api.c
src/lib-index/mail-index-strmap.c
src/lib-lda/duplicate.c
src/lib-storage/index/dbox-common/dbox-file.c
src/lib/istream.h
src/lib/ostream-file.c
src/plugins/fts/fts-expunge-log.c