Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
c0037784
Commit
c0037784
authored
Aug 25, 2008
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix warnings in the HTTP client
Fix a "unused argument" warning, and several warnings regarding void pointer calculation.
parent
35918c99
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
inputStream_http.c
src/inputStream_http.c
+4
-3
No files found.
src/inputStream_http.c
View file @
c0037784
...
...
@@ -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:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment