]> git.ipfire.org Git - thirdparty/haproxy.git/commit
CLEANUP: Consistently `unsigned int` for bitfields
authorTim Duesterhus <tim@bastelstu.be>
Sat, 18 Jan 2020 00:32:49 +0000 (01:32 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 22 Jan 2020 06:28:39 +0000 (07:28 +0100)
commit6a0dd733906611dea958cf74b9f51bb16028ae20
tree62729678f540deddf3ae3c4deae1f57bb884a2f7
parent13a9232ebc63fdf357ffcf4fa7a1a5e77a1eac2b
CLEANUP: Consistently `unsigned int` for bitfields

Signed bitfields of size `1` hold the values `0` and `-1`, but are
usually assigned `1`, possibly leading to subtle bugs when the value
is explicitely compared against `1`.
include/types/listener.h
include/types/pattern.h
include/types/ssl_sock.h