summaryrefslogtreecommitdiff
path: root/array.c
diff options
context:
space:
mode:
authorSøren Sandmann Pedersen <sandmann@redhat.com>2009-04-03 04:13:45 -0400
committerSøren Sandmann Pedersen <sandmann@redhat.com>2009-04-03 06:02:04 -0400
commitc64dbc603831aa93f44239d43e06eebdf82fb1e0 (patch)
treedfd9cb2d10605671d044501d63c90b09e8c90c1b /array.c
parent4206d2a47538fda955a07fc4fe3c2e77f39cf6cc (diff)
A few comment fixes
Diffstat (limited to 'array.c')
-rw-r--r--array.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/array.c b/array.c
index 13c475e..c6ea712 100644
--- a/array.c
+++ b/array.c
@@ -399,15 +399,13 @@ nul_buffer_is_empty (nul_buffer_t *buffer)
/* This function appends uninitialized data of length @size
* to the buffer, then returns a pointer to the added data.
* The intention is that the app can read() into this
- * memory, then use nul_buffer_pop_tail() to delete the
+ * memory, then use nul_buffer_delete_tail() to delete the
* area that wasn't read into. Example
*
* guint8 *area = nul_buffer_alloc_tail (buffer, 8192);
*
* n_read = read (fd, area, 8192);
*
- * nul_buffer_delete_tail (buffer, 8192 - (n_read < 0)? 0 : n_read);
- *
* if (n_read < 0)
* {
* nul_buffer_delete_tail (buffer, 8192);