573424407a2d3c1453638a643583a7cf10c129e1 |
|
16-May-2016 |
Phil Carmody <phil@dovecot.fi> |
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> |
534e41e436a7546f36f61e0dc49c0c191d850f6b |
|
16-May-2016 |
Phil Carmody <phil@dovecot.fi> |
lib: istream - migrate to i_stream_read_bytes()
Scripted to pick off the low hanging fruit, one liners with an explicit
'-1' in the final parameter, but hand-checked.
git grep 'i_stream_read_data.*, [^,]*- \?1)' | sed s/:.*// | \
xargs sed -i -e 's/i_stream_read_data(\(.*\), \(.*\), \(.*\), \(.*[^ ]\) \?- \?1)/i_stream_read_bytes(\1, \2, \3, \4)/'
Signed-off-by: Phil Carmody <phil@dovecot.fi> |
030e247340315f4425d297a00b439a4df72bf70c |
|
02-Jun-2014 |
Phil Carmody <phil@dovecot.fi> |
mail-index: make uid_lookup_idx hold a sequence number, not a 0-based C array index
Rename it to _seq, and make it hold values 1.. rather than 0.. . Several
uses of the value are simplified by this change, and none are made more
confusing, so I think it helps improve maintainability of the code.
Signed-off-by: Phil Carmody <phil@dovecot.fi> |