MINOR: buffer: replace buffer_not_empty() with b_data() or c_data()
It's mostly for consistency as many places already use one of these instead.
diff --git a/src/buffer.c b/src/buffer.c
index d6320c6..416cb4c 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -89,7 +89,7 @@
if (b_tail(b) + delta > b->data + b->size)
return 0; /* no space left */
- if (buffer_not_empty(b) &&
+ if (b_data(b) &&
b_tail(b) + delta > b_head(b) &&
b_head(b) >= b_tail(b))
return 0; /* no space left before wrapping data */
@@ -128,7 +128,7 @@
if (b_tail(b) + delta >= b->data + b->size)
return 0; /* no space left */
- if (buffer_not_empty(b) &&
+ if (b_data(b) &&
b_tail(b) + delta > b_head(b) &&
b_head(b) >= b_tail(b))
return 0; /* no space left before wrapping data */