Return -1 on error, not on success.

git-svn-id: https://svn.musicpd.org/mpd/trunk@4247 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
J. Alexander Treuman 2006-06-04 17:27:12 +00:00
parent c6d110f975
commit 2eb5ebc4ed
1 changed files with 1 additions and 1 deletions

View File

@ -86,8 +86,8 @@ size_t inputStream_fileRead(InputStream * inStream, void * ptr, size_t size,
int inputStream_fileClose(InputStream * inStream) {
if(fclose((FILE *)inStream->data)<0) {
inStream->error = errno;
return -1;
}
else return -1;
return 0;
}