From 7b7ea41f1211fdfc82cbe1530cce43fa3fb54269 Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Sat, 21 May 2011 23:18:35 +0200 Subject: [PATCH] Reacted on -Wextra -Wno-unused-parameter warnings of gcc for stream.c --- libisofs/stream.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libisofs/stream.c b/libisofs/stream.c index 8e4699b..00bcdb0 100644 --- a/libisofs/stream.c +++ b/libisofs/stream.c @@ -398,7 +398,7 @@ static int cut_out_read(IsoStream *stream, void *buf, size_t count) { struct cut_out_stream *data = stream->data; - count = (size_t)MIN(data->size - data->pos, count); + count = (size_t) MIN((size_t) (data->size - data->pos), count); if (count == 0) { return 0; } @@ -647,7 +647,7 @@ int mem_read(IsoStream *stream, void *buf, size_t count) return ISO_FILE_NOT_OPENED; } - if (data->offset >= data->size) { + if (data->offset >= (ssize_t) data->size) { return 0; /* EOF */ }