Hi Here a little patch proposal.
Kind regards.
From 3ffe96e6a68b5364ecd5364083c9c753e1097d9c Mon Sep 17 00:00:00 2001
From: David Carlier <[email protected]>
Date: Wed, 27 Mar 2019 16:08:42 +0000
Subject: [PATCH] BUILD/MINOR: listener
Silenting couple of warning related to signness.
---
src/listener.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/listener.c b/src/listener.c
index 70a8d348..ad63c4d6 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);
--
2.21.0