mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-27 07:35:57 -05:00
Kill unused variable len
This commit is contained in:
parent
a70a45d925
commit
0dac53f25c
@ -927,14 +927,13 @@ evhttp_read(int fd, short what, void *arg)
|
||||
struct evhttp_connection *evcon = arg;
|
||||
struct evhttp_request *req = TAILQ_FIRST(&evcon->requests);
|
||||
struct evbuffer *buf = evcon->input_buffer;
|
||||
int n, len;
|
||||
int n;
|
||||
|
||||
if (what == EV_TIMEOUT) {
|
||||
evhttp_connection_fail(evcon, EVCON_HTTP_TIMEOUT);
|
||||
return;
|
||||
}
|
||||
n = evbuffer_read(buf, fd, -1);
|
||||
len = EVBUFFER_LENGTH(buf);
|
||||
event_debug(("%s: got %d on %d\n", __func__, n, fd));
|
||||
|
||||
if (n == -1) {
|
||||
|
@ -605,14 +605,13 @@ evrtsp_read(int fd, short what, void *arg)
|
||||
struct evrtsp_connection *evcon = arg;
|
||||
struct evrtsp_request *req = TAILQ_FIRST(&evcon->requests);
|
||||
struct evbuffer *buf = evcon->input_buffer;
|
||||
int n, len;
|
||||
int n;
|
||||
|
||||
if (what == EV_TIMEOUT) {
|
||||
evrtsp_connection_fail(evcon, EVCON_RTSP_TIMEOUT);
|
||||
return;
|
||||
}
|
||||
n = evbuffer_read(buf, fd, -1);
|
||||
len = EVBUFFER_LENGTH(buf);
|
||||
event_debug(("%s: got %d on %d\n", __func__, n, fd));
|
||||
|
||||
if (n == -1) {
|
||||
|
Loading…
Reference in New Issue
Block a user