aboutsummaryrefslogtreecommitdiffstats
path: root/src/inputStream_http.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-08-25 15:49:06 +0200
committerMax Kellermann <max@duempel.org>2008-08-25 15:49:06 +0200
commitc0037784549e1d560b5defb845bdc336dcf3fc32 (patch)
treeab93048ad06133f85badaf69f8a8b8b935daccca /src/inputStream_http.c
parent35918c990163b2e4350156aba11c50ebd2807ef1 (diff)
downloadmpd-c0037784549e1d560b5defb845bdc336dcf3fc32.tar.gz
mpd-c0037784549e1d560b5defb845bdc336dcf3fc32.tar.xz
mpd-c0037784549e1d560b5defb845bdc336dcf3fc32.zip
fix warnings in the HTTP client
Fix a "unused argument" warning, and several warnings regarding void pointer calculation.
Diffstat (limited to '')
-rw-r--r--src/inputStream_http.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/inputStream_http.c b/src/inputStream_http.c
index 48972ac8b..9de4314a6 100644
--- a/src/inputStream_http.c
+++ b/src/inputStream_http.c
@@ -847,7 +847,8 @@ static void parse_icy_metadata(InputStream * is, char *metadata, size_t size)
}
}
-static size_t read_with_metadata(InputStream *is, void *ptr, ssize_t len)
+static size_t read_with_metadata(InputStream *is, unsigned char *ptr,
+ ssize_t len)
{
struct http_data *data = (struct http_data *) is->data;
size_t readed = 0;
@@ -887,13 +888,13 @@ static size_t read_with_metadata(InputStream *is, void *ptr, ssize_t len)
return readed;
}
-size_t inputStream_httpRead(InputStream * is, void *ptr, size_t size,
+size_t inputStream_httpRead(InputStream * is, void *_ptr, size_t size,
size_t nmemb)
{
struct http_data *data = (struct http_data *) is->data;
size_t len = size * nmemb;
size_t r;
- void *ptr0 = ptr;
+ unsigned char *ptr = _ptr, *ptr0 = _ptr;
long tries = len / 128; /* try harder for bigger reads */
retry: