MINOR: buffer: Use b_add()/bo_add() instead of accessing b->i/b->o.
Use the newly available functions instead of using the buffer fields directly.
diff --git a/src/flt_http_comp.c b/src/flt_http_comp.c
index 9365364..85abb84 100644
--- a/src/flt_http_comp.c
+++ b/src/flt_http_comp.c
@@ -212,7 +212,7 @@
memcpy(b_tail(tmpbuf)+block, buf->data, len-block);
c_rew(chn, *nxt);
- tmpbuf->i += len;
+ b_add(tmpbuf, len);
ret = len;
}
else {
@@ -770,10 +770,10 @@
if (ib->i > 0) {
left = ci_contig_data(chn);
memcpy(ob->p + ob->i, ci_head(chn), left);
- ob->i += left;
+ b_add(ob, left);
if (ib->i - left) {
memcpy(ob->p + ob->i, ib->data, ib->i - left);
- ob->i += ib->i - left;
+ b_add(ob, ib->i - left);
}
}