]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUILD: mworker: silence two printf format warnings around getpid()
authorWilly Tarreau <w@1wt.eu>
Sat, 22 Jun 2019 05:41:38 +0000 (07:41 +0200)
committerWilly Tarreau <w@1wt.eu>
Sat, 22 Jun 2019 05:57:56 +0000 (07:57 +0200)
commit76a80c710cbd8ca3d7dcd191d26cc7a450dee22e
treecc50a4b76f9b0460d956ba6d66cf36696babd160
parent9417f4534ad742eda35c4cc3d1ccb390f75ea4b1
BUILD: mworker: silence two printf format warnings around getpid()

getpid() is documented as returning a pit pid_t result, not
necessarily an int. This causes a build warning on Solaris 10
because of '%d' or '%u' are used in the format passed to snprintf().
Let's just cast the result as an int (respectively unsigned int).

This can be backported to 2.0 and possibly older versions though
it really has no impact.
src/haproxy.c
src/mworker.c