aboutsummaryrefslogtreecommitdiffstats
path: root/src/input_file.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-10-26 20:54:52 +0100
committerMax Kellermann <max@duempel.org>2008-10-26 20:54:52 +0100
commit464b6117721056e72c79824a298caf53eb5cd452 (patch)
treee4f304438f6bac7293c58ec185ba9fb805dec0b7 /src/input_file.c
parentf08041f0eb8512304584b583073508629a934c88 (diff)
downloadmpd-464b6117721056e72c79824a298caf53eb5cd452.tar.gz
mpd-464b6117721056e72c79824a298caf53eb5cd452.tar.xz
mpd-464b6117721056e72c79824a298caf53eb5cd452.zip
input_stream: input_stream_close() returns void
close() shouldn't fail with read-only streams.
Diffstat (limited to 'src/input_file.c')
-rw-r--r--src/input_file.c9
1 files changed, 2 insertions, 7 deletions
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