MINOR: buffer: remove bo_ptr()
It was replaced by co_head() when a channel was known, otherwise b_head().
diff --git a/src/buffer.c b/src/buffer.c
index 127def2..5085e72 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -90,8 +90,8 @@
return 0; /* no space left */
if (buffer_not_empty(b) &&
- bi_end(b) + delta > bo_ptr(b) &&
- bo_ptr(b) >= bi_end(b))
+ bi_end(b) + delta > b_head(b) &&
+ b_head(b) >= bi_end(b))
return 0; /* no space left before wrapping data */
/* first, protect the end of the buffer */
@@ -129,8 +129,8 @@
return 0; /* no space left */
if (buffer_not_empty(b) &&
- bi_end(b) + delta > bo_ptr(b) &&
- bo_ptr(b) >= bi_end(b))
+ bi_end(b) + delta > b_head(b) &&
+ b_head(b) >= bi_end(b))
return 0; /* no space left before wrapping data */
/* first, protect the end of the buffer */