aboutsummaryrefslogtreecommitdiffstats
path: root/src/inputStream_file.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-10-17 17:53:59 +0200
committerMax Kellermann <max@duempel.org>2008-10-17 17:53:59 +0200
commit4984639b7255d72e272f278c95adb1a2cf71b61c (patch)
tree4751fbdef706d62b77d41c411462fbf6f852f384 /src/inputStream_file.c
parentb73ecbb073625b56aaef33f2fa7f102fdc9a6247 (diff)
downloadmpd-4984639b7255d72e272f278c95adb1a2cf71b61c.tar.gz
mpd-4984639b7255d72e272f278c95adb1a2cf71b61c.tar.xz
mpd-4984639b7255d72e272f278c95adb1a2cf71b61c.zip
input_stream: removed nmemb argument
The nmemb argument isn't actually useful, and one of nmemb and size was always passed as 1. Remove it.
Diffstat (limited to '')
-rw-r--r--src/inputStream_file.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/inputStream_file.c b/src/inputStream_file.c
index eea1d11aa..9b5a1a62d 100644
--- a/src/inputStream_file.c
+++ b/src/inputStream_file.c
@@ -71,12 +71,11 @@ int inputStream_fileSeek(struct input_stream *inStream, long offset,
}
size_t inputStream_fileRead(struct input_stream *inStream,
- void *ptr, size_t size,
- size_t nmemb)
+ void *ptr, size_t size)
{
size_t readSize;
- readSize = fread(ptr, size, nmemb, (FILE *) inStream->data);
+ readSize = fread(ptr, 1, size, (FILE *) inStream->data);
if (readSize <= 0 && ferror((FILE *) inStream->data)) {
inStream->error = errno;
DEBUG("inputStream_fileRead: error reading: %s\n",