mirror of
https://github.com/libevent/libevent.git
synced 2025-01-31 09:12:55 +08:00
Fix compilation.
This commit is contained in:
parent
f0c9b51cc7
commit
dbb3c65288
4
http.c
4
http.c
@ -840,8 +840,6 @@ evhttp_connection_done(struct evhttp_connection *evcon)
|
|||||||
static enum message_read_status
|
static enum message_read_status
|
||||||
evhttp_handle_chunked_read(struct evhttp_request *req, struct evbuffer *buf)
|
evhttp_handle_chunked_read(struct evhttp_request *req, struct evbuffer *buf)
|
||||||
{
|
{
|
||||||
ev_ssize_t len;
|
|
||||||
|
|
||||||
if (req == NULL || buf == NULL) {
|
if (req == NULL || buf == NULL) {
|
||||||
return DATA_CORRUPTED;
|
return DATA_CORRUPTED;
|
||||||
}
|
}
|
||||||
@ -909,7 +907,7 @@ evhttp_handle_chunked_read(struct evhttp_request *req, struct evbuffer *buf)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* don't have enough to complete a chunk; wait for more */
|
/* don't have enough to complete a chunk; wait for more */
|
||||||
if (len < req->ntoread)
|
if (buflen < req->ntoread)
|
||||||
return (MORE_DATA_EXPECTED);
|
return (MORE_DATA_EXPECTED);
|
||||||
|
|
||||||
/* Completed chunk */
|
/* Completed chunk */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user