From 2b45d815537d607dc08e08409822e5138b233059 Mon Sep 17 00:00:00 2001 From: Vasiliy Ulyanov Date: Mon, 4 Mar 2013 10:12:12 +0400 Subject: [PATCH] Remove compile errors/warnings for some platforms (buffer module) --- buffer/buffer.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/buffer/buffer.c b/buffer/buffer.c index 419dc47..52f4e38 100644 --- a/buffer/buffer.c +++ b/buffer/buffer.c @@ -1,6 +1,5 @@ #include #include -#include #include #include #include @@ -108,7 +107,7 @@ static inline void buf_use_chunk(struct chunk *chunk) chunk->size = 0; } -static inline void buf_check_chunk_size(struct chunk *chunk, unsigned long size) +static inline int buf_check_chunk_size(struct chunk *chunk, unsigned long size) { return (bdevice.chunk_size - chunk->size <= size); } -- 2.7.4