MINOR: buffer: rename the data length member to '->data'
It used to be called 'len' during the reorganisation but strictly speaking
it's not a length since it wraps. Also we already use '_data' as the suffix
to count available data, and data is also what we use to indicate the amount
of data in a pipe so let's improve consistency here. It was important to do
this in two operations because data used to be the name of the pointer to
the storage area.
diff --git a/include/common/istbuf.h b/include/common/istbuf.h
index 2210d4a..7631212 100644
--- a/include/common/istbuf.h
+++ b/include/common/istbuf.h
@@ -98,7 +98,7 @@
return r.len < b->size ? 0 : -1;
p = b_tail(b);
- b->len += r.len;
+ b->data += r.len;
while (r.len--) {
*p++ = *r.ptr++;
if (unlikely(p == end))