if (!(s->result & SRV_CHK_ERROR)) {
/* we don't want to mark 'UP' a server on which we detected an error earlier */
if (s->check.bo->o) {
- int ret;
-
- ret = conn->xprt->snd_buf(conn, s->check.bo, MSG_DONTWAIT | MSG_NOSIGNAL);
+ conn->xprt->snd_buf(conn, s->check.bo, MSG_DONTWAIT | MSG_NOSIGNAL);
if (conn->flags & CO_FL_ERROR) {
set_server_check_status(s, HCHK_STATUS_L4CON, strerror(errno));
goto out_wakeup;
*/
static void event_srv_chk_r(struct connection *conn)
{
- int len;
struct server *s = conn->owner;
struct task *t = s->check.task;
char *desc;
done = 0;
- len = conn->xprt->rcv_buf(conn, s->check.bi, s->check.bi->size);
+ conn->xprt->rcv_buf(conn, s->check.bi, s->check.bi->size);
if (conn->flags & (CO_FL_ERROR | CO_FL_SOCK_RD_SH | CO_FL_DATA_RD_SH)) {
done = 1;
if ((conn->flags & CO_FL_ERROR) && !s->check.bi->i) {