mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-04-01 22:48:25 +00:00
MINOR: quic: Compilation fix for quic_rx_packet_refinc()
This was reported by the CI wich clang as compilator. In file included from src/ssl_sock.c:80: include/haproxy/xprt_quic.h:1100:50: error: passing 'int *' to parameter of type 'unsigned int *' converts between pointers to integer types with different sign [-Werror,-Wpointer-sign] } while (refcnt && !HA_ATOMIC_CAS(&pkt->refcnt, &refcnt, refcnt - 1)); ^~~~~~~
This commit is contained in:
parent
f3b0ba7dc9
commit
a842ca1fca
@ -1093,7 +1093,7 @@ static inline void quic_rx_packet_refinc(struct quic_rx_packet *pkt)
|
||||
/* Decrement the reference counter of <pkt> while remaining positive */
|
||||
static inline void quic_rx_packet_refdec(struct quic_rx_packet *pkt)
|
||||
{
|
||||
int refcnt;
|
||||
unsigned int refcnt;
|
||||
|
||||
do {
|
||||
refcnt = HA_ATOMIC_LOAD(&pkt->refcnt);
|
||||
|
Loading…
Reference in New Issue
Block a user