]> git.ipfire.org Git - thirdparty/haproxy.git/commit
CLEANUP: conn_stream: apply cs_endp_flags.cocci tree-wide
authorWilly Tarreau <w@1wt.eu>
Tue, 17 May 2022 14:10:17 +0000 (16:10 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 27 May 2022 17:33:34 +0000 (19:33 +0200)
commit0cfcc4081288108016d241a470b758263ca89599
tree6c98b7d7dab18a3e662e063cc0b0635d3db8e006
parent87b60b2c9d5e26dcb872f6cdc51127e1e6861926
CLEANUP: conn_stream: apply cs_endp_flags.cocci tree-wide

This changes all main uses of cs->endp->flags to the sc_ep_*() equivalent
by applying coccinelle script cs_endp_flags.cocci.

Note: 143 locations were touched, manually reviewed and found to be OK,
except a single one that was adjusted in cs_reset_endp() where the flags
are read and filtered to be used as-is and not as a boolean, hence was
replaced with sc_ep_get() & $FLAGS.

The script was applied with all includes:

  spatch --in-place --recursive-includes -I include --sp-file $script $files
include/haproxy/conn_stream.h
include/haproxy/cs_utils.h
src/backend.c
src/check.c
src/conn_stream.c
src/http_ana.c
src/ssl_sock.c
src/stream.c
src/tcpcheck.c