]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[CLEANUP] stats: remove printf format warning in stats_dump_full_sess_to_buffer()
authorWilly Tarreau <w@1wt.eu>
Sun, 21 Mar 2010 22:21:00 +0000 (23:21 +0100)
committerWilly Tarreau <w@1wt.eu>
Sun, 21 Mar 2010 22:21:00 +0000 (23:21 +0100)
commit4e1554c295f4c572d829982bdcb7e2556ea23167
tree97e1a91b4f9cf84eb40620b71c080e006db680f3
parentda618cbdbc3b10ae266957a14e10de95d54377c7
[CLEANUP] stats: remove printf format warning in stats_dump_full_sess_to_buffer()

This warning was first reported by Ross West on FreeBSD, then by
Holger Just on OpenSolaris. It also happens on 64bit Linux. However,
fixing the format to use long int complains on 32bit Linux where
ptrdiff_t is apparently different. Better cast the pointer difference
to an int then.
src/dumpstats.c