MINOR: debug: make mark_tainted() return the previous value
authorWilly Tarreau <w@1wt.eu>
Sat, 19 Oct 2024 13:12:47 +0000 (15:12 +0200)
committerWilly Tarreau <w@1wt.eu>
Sat, 19 Oct 2024 13:13:47 +0000 (15:13 +0200)
commit8e048603d1bba0721433a5ae0480fbf1ab6f4897
treefd2f97438865459132c7714e2da649eed24a3cb1
parent84340d108be3963a37cd4640bf2bbe1b05e67e42
MINOR: debug: make mark_tainted() return the previous value

Since mark_tainted() uses atomic ops to update the tainted status, let's
make it return the prior value, which will allow the caller to detect
if it's the first one to set it or not.
include/haproxy/bug.h