From: David Carlier Date: Wed, 27 Mar 2019 16:08:42 +0000 (+0000) Subject: BUILD/MINOR: listener: Silent a few signedness warnings. X-Git-Tag: v2.0-dev3~373 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5671662f08536c979ff91bc46f94d086bf286540;p=thirdparty%2Fhaproxy.git 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. --- diff --git a/src/listener.c b/src/listener.c index 70a8d34820..ad63c4d6ff 100644 --- a/src/listener.c +++ b/src/listener.c @@ -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);