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
f8f3bc89
Commit
f8f3bc89
authored
Aug 25, 2011
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
input/curl: pass input_curl to fill_buffer()
Remove a cast.
parent
635f7026
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
curl_input_plugin.c
src/input/curl_input_plugin.c
+3
-4
No files found.
src/input/curl_input_plugin.c
View file @
f8f3bc89
...
@@ -319,9 +319,8 @@ input_curl_select(struct input_curl *c, GError **error_r)
...
@@ -319,9 +319,8 @@ input_curl_select(struct input_curl *c, GError **error_r)
}
}
static
bool
static
bool
fill_buffer
(
struct
input_
stream
*
is
,
GError
**
error_r
)
fill_buffer
(
struct
input_
curl
*
c
,
GError
**
error_r
)
{
{
struct
input_curl
*
c
=
(
struct
input_curl
*
)
is
;
CURLMcode
mcode
=
CURLM_CALL_MULTI_PERFORM
;
CURLMcode
mcode
=
CURLM_CALL_MULTI_PERFORM
;
while
(
!
c
->
eof
&&
g_queue_is_empty
(
c
->
buffers
))
{
while
(
!
c
->
eof
&&
g_queue_is_empty
(
c
->
buffers
))
{
...
@@ -343,7 +342,7 @@ fill_buffer(struct input_stream *is, GError **error_r)
...
@@ -343,7 +342,7 @@ fill_buffer(struct input_stream *is, GError **error_r)
"curl_multi_perform() failed: %s"
,
"curl_multi_perform() failed: %s"
,
curl_multi_strerror
(
mcode
));
curl_multi_strerror
(
mcode
));
c
->
eof
=
true
;
c
->
eof
=
true
;
is
->
ready
=
true
;
c
->
base
.
ready
=
true
;
return
false
;
return
false
;
}
}
...
@@ -457,7 +456,7 @@ input_curl_read(struct input_stream *is, void *ptr, size_t size,
...
@@ -457,7 +456,7 @@ input_curl_read(struct input_stream *is, void *ptr, size_t size,
do
{
do
{
/* fill the buffer */
/* fill the buffer */
success
=
fill_buffer
(
is
,
error_r
);
success
=
fill_buffer
(
c
,
error_r
);
if
(
!
success
)
if
(
!
success
)
return
0
;
return
0
;
...
...
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