aboutsummaryrefslogtreecommitdiffstats
path: root/src/inputStream_http.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_http.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_http.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/inputStream_http.c b/src/inputStream_http.c
index ace6da4ce..bbde11825 100644
--- a/src/inputStream_http.c
+++ b/src/inputStream_http.c
@@ -890,11 +890,10 @@ static size_t read_with_metadata(InputStream *is, unsigned char *ptr,
return readed;
}
-size_t inputStream_httpRead(InputStream * is, void *_ptr, size_t size,
- size_t nmemb)
+size_t inputStream_httpRead(InputStream * is, void *_ptr, size_t size)
{
struct http_data *data = (struct http_data *) is->data;
- size_t len = size * nmemb;
+ size_t len = size;
size_t r;
unsigned char *ptr = _ptr, *ptr0 = _ptr;
long tries = len / 128; /* try harder for bigger reads */