aboutsummaryrefslogtreecommitdiffstats
path: root/src/input_stream.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_stream.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_stream.c')
-rw-r--r--src/input_stream.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/input_stream.c b/src/input_stream.c
index a5c55fa54..957ca113f 100644
--- a/src/input_stream.c
+++ b/src/input_stream.c
@@ -85,7 +85,7 @@ input_stream_read(struct input_stream *is, void *ptr, size_t size)
return is->plugin->read(is, ptr, size);
}
-int input_stream_close(struct input_stream *is)
+void input_stream_close(struct input_stream *is)
{
if (is->mime)
free(is->mime);
@@ -94,7 +94,7 @@ int input_stream_close(struct input_stream *is)
if (is->meta_title)
free(is->meta_title);
- return is->plugin->close(is);
+ is->plugin->close(is);
}
int input_stream_eof(struct input_stream *is)