mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2026-05-04 12:41:00 +02:00
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:
parent
9744f7c126
commit
5671662f08
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user