summaryrefslogtreecommitdiffstats
path: root/lib/buffer.h
diff options
context:
space:
mode:
authorpaul <paul>2004-11-08 15:43:21 +0000
committerpaul <paul>2004-11-08 15:43:21 +0000
commit178008b5ec24c1077046e3b7f4ecc7d1c003dea8 (patch)
tree1f6777aa844e919df03870310c271417aad889e5 /lib/buffer.h
parentab1b5e29280095604dbb195033ac75f480c66f8e (diff)
downloadquagga-178008b5ec24c1077046e3b7f4ecc7d1c003dea8.tar.bz2
quagga-178008b5ec24c1077046e3b7f4ecc7d1c003dea8.tar.xz
2004-11-07 Paul Jakma <paul@dishone.st>
* buffer.c: Add missing include of log.h. (buffer_flush_available) written is compared against mostly against unsigned types, only for the writev do we need signed compare, so declare it as size_t and cast it to ssize_t just for the error compare when we've called writev. * buffer.h: Add comment that buffer data sizes really should be size_t.
Diffstat (limited to 'lib/buffer.h')
-rw-r--r--lib/buffer.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/buffer.h b/lib/buffer.h
index 2acd571f..65b8a8ca 100644
--- a/lib/buffer.h
+++ b/lib/buffer.h
@@ -29,7 +29,8 @@ struct buffer
/* Data list. */
struct buffer_data *head;
struct buffer_data *tail;
-
+
+ /* XXX: These unsigned longs should be size_t's */
/* Current allocated data. */
unsigned long alloc;