From 4984639b7255d72e272f278c95adb1a2cf71b61c Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 17 Oct 2008 17:53:59 +0200 Subject: 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. --- src/inputStream_file.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/inputStream_file.c') 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", -- cgit v1.2.3