From 464b6117721056e72c79824a298caf53eb5cd452 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sun, 26 Oct 2008 20:54:52 +0100 Subject: input_stream: input_stream_close() returns void close() shouldn't fail with read-only streams. --- src/input_file.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'src/input_file.c') diff --git a/src/input_file.c b/src/input_file.c index a176d55f2..5c3ff6ad0 100644 --- a/src/input_file.c +++ b/src/input_file.c @@ -78,15 +78,10 @@ input_file_read(struct input_stream *is, void *ptr, size_t size) return readSize; } -static int +static void input_file_close(struct input_stream *is) { - if (fclose((FILE *) is->data) < 0) { - is->error = errno; - return -1; - } - - return 0; + fclose((FILE *) is->data); } static int -- cgit v1.2.3