Kill unused variable len

This commit is contained in:
Julien BLACHE 2011-04-30 11:33:46 +02:00
parent a70a45d925
commit 0dac53f25c
2 changed files with 2 additions and 4 deletions

View File

@ -927,14 +927,13 @@ evhttp_read(int fd, short what, void *arg)
struct evhttp_connection *evcon = arg; struct evhttp_connection *evcon = arg;
struct evhttp_request *req = TAILQ_FIRST(&evcon->requests); struct evhttp_request *req = TAILQ_FIRST(&evcon->requests);
struct evbuffer *buf = evcon->input_buffer; struct evbuffer *buf = evcon->input_buffer;
int n, len; int n;
if (what == EV_TIMEOUT) { if (what == EV_TIMEOUT) {
evhttp_connection_fail(evcon, EVCON_HTTP_TIMEOUT); evhttp_connection_fail(evcon, EVCON_HTTP_TIMEOUT);
return; return;
} }
n = evbuffer_read(buf, fd, -1); n = evbuffer_read(buf, fd, -1);
len = EVBUFFER_LENGTH(buf);
event_debug(("%s: got %d on %d\n", __func__, n, fd)); event_debug(("%s: got %d on %d\n", __func__, n, fd));
if (n == -1) { if (n == -1) {

View File

@ -605,14 +605,13 @@ evrtsp_read(int fd, short what, void *arg)
struct evrtsp_connection *evcon = arg; struct evrtsp_connection *evcon = arg;
struct evrtsp_request *req = TAILQ_FIRST(&evcon->requests); struct evrtsp_request *req = TAILQ_FIRST(&evcon->requests);
struct evbuffer *buf = evcon->input_buffer; struct evbuffer *buf = evcon->input_buffer;
int n, len; int n;
if (what == EV_TIMEOUT) { if (what == EV_TIMEOUT) {
evrtsp_connection_fail(evcon, EVCON_RTSP_TIMEOUT); evrtsp_connection_fail(evcon, EVCON_RTSP_TIMEOUT);
return; return;
} }
n = evbuffer_read(buf, fd, -1); n = evbuffer_read(buf, fd, -1);
len = EVBUFFER_LENGTH(buf);
event_debug(("%s: got %d on %d\n", __func__, n, fd)); event_debug(("%s: got %d on %d\n", __func__, n, fd));
if (n == -1) { if (n == -1) {