MINOR: buffer: remove bi_ptr()
It's now been replaced by b_head() when b->o is null, ci_head() when
the channel is known, or b_peek(b, b->o) in other situations.
diff --git a/src/flt_http_comp.c b/src/flt_http_comp.c
index f26b28b..2084397 100644
--- a/src/flt_http_comp.c
+++ b/src/flt_http_comp.c
@@ -207,7 +207,7 @@
c_adv(chn, *nxt);
block = ci_contig_data(chn);
- memcpy(bi_end(tmpbuf), bi_ptr(buf), block);
+ memcpy(bi_end(tmpbuf), ci_head(chn), block);
if (len > block)
memcpy(bi_end(tmpbuf)+block, buf->data, len-block);
c_rew(chn, *nxt);
@@ -649,7 +649,7 @@
block2 = data_process_len - block1;
/* compressors return < 0 upon error or the amount of bytes read */
- consumed_data = st->comp_algo->add_data(st->comp_ctx, bi_ptr(in), block1, out);
+ consumed_data = st->comp_algo->add_data(st->comp_ctx, b_peek(in, in->o), block1, out);
if (consumed_data != block1 || !block2)
goto end;
consumed_data = st->comp_algo->add_data(st->comp_ctx, in->data, block2, out);
@@ -766,7 +766,7 @@
c_adv(chn, st->consumed);
if (ib->i > 0) {
left = ci_contig_data(chn);
- memcpy(ob->p + ob->i, bi_ptr(ib), left);
+ memcpy(ob->p + ob->i, ci_head(chn), left);
ob->i += left;
if (ib->i - left) {
memcpy(ob->p + ob->i, ib->data, ib->i - left);