From 178008b5ec24c1077046e3b7f4ecc7d1c003dea8 Mon Sep 17 00:00:00 2001 From: paul Date: Mon, 8 Nov 2004 15:43:21 +0000 Subject: 2004-11-07 Paul Jakma * 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. --- lib/buffer.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/buffer.h') 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; -- cgit v1.2.3