diff options
author | Max Kellermann <max@duempel.org> | 2008-10-26 20:54:52 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-10-26 20:54:52 +0100 |
commit | 464b6117721056e72c79824a298caf53eb5cd452 (patch) | |
tree | e4f304438f6bac7293c58ec185ba9fb805dec0b7 /src/input_file.c | |
parent | f08041f0eb8512304584b583073508629a934c88 (diff) | |
download | mpd-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.c | 9 |
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 |