BUILD/MINOR: listener: Silent a few signedness warnings.

Silenting couple of warnings related to signedness, due to a mismatch of
signed and unsigned ints with l->nbconn, actconn and p->feconn.
This commit is contained in:
David Carlier 2019-03-27 16:08:42 +00:00 committed by Olivier Houchard
parent 9744f7c126
commit 5671662f08

View File

@ -691,7 +691,7 @@ void listener_accept(int fd)
goto end;
}
next_conn = count + 1;
} while (!_HA_ATOMIC_CAS(&l->nbconn, &count, next_conn));
} while (!_HA_ATOMIC_CAS(&l->nbconn, (int *)(&count), next_conn));
if (l->maxconn && next_conn == l->maxconn) {
/* we filled it, mark it full */
@ -728,7 +728,7 @@ void listener_accept(int fd)
goto end;
}
next_actconn = count + 1;
} while (!_HA_ATOMIC_CAS(&actconn, &count, next_actconn));
} while (!_HA_ATOMIC_CAS(&actconn, (int *)(&count), next_actconn));
if (unlikely(next_actconn == global.maxconn)) {
limit_listener(l, &global_listener_queue);