]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUILD: checks: fix inlining issue on set_srv_agent_[addr,port}
authorWilly Tarreau <w@1wt.eu>
Fri, 28 Jan 2022 08:16:47 +0000 (09:16 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 28 Jan 2022 18:04:02 +0000 (19:04 +0100)
commit95d3eaff363fb647b11cf332574079da98cf2ad8
tree7de98b38082b3323e0324b08485b771c450d7ac3
parenta65b4933bae485c7dd7de53c665d09954f92a9f9
BUILD: checks: fix inlining issue on set_srv_agent_[addr,port}

These functions are declared as external functions in check.h and
as inline functions in check.c. Let's move them as static inline in
check.h. This appeared in 2.4 with the following commits:

  4858fb2e1 ("MEDIUM: check: align agentaddr and agentport behaviour")
  1c921cd74 ("BUG/MINOR: check: consitent way to set agentaddr")

While harmless (it only triggers build warnings with some gcc 4.x),
it should probably be backported where the paches above are present
to keep the code consistent.
include/haproxy/check.h
src/check.c