mirror of
https://github.com/libevent/libevent.git
synced 2025-01-09 00:56:20 +08:00
some compilers don't like C99 inline variable declaration
svn:r264
This commit is contained in:
parent
ddf70659ad
commit
1a64c982eb
3
http.c
3
http.c
@ -1152,10 +1152,11 @@ evhttp_start_read(struct evhttp_connection *evcon)
|
||||
void
|
||||
evhttp_send_done(struct evhttp_connection *evcon, void *arg)
|
||||
{
|
||||
int need_close;
|
||||
struct evhttp_request *req = TAILQ_FIRST(&evcon->requests);
|
||||
TAILQ_REMOVE(&evcon->requests, req, next);
|
||||
|
||||
int need_close = evhttp_is_connection_close(req->input_headers) ||
|
||||
need_close = evhttp_is_connection_close(req->input_headers) ||
|
||||
evhttp_is_connection_close(req->output_headers);
|
||||
|
||||
evhttp_request_free(req);
|
||||
|
Loading…
x
Reference in New Issue
Block a user