]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: sample: allow integers to cast to binary
authorWilly Tarreau <w@1wt.eu>
Tue, 15 Jul 2014 19:19:08 +0000 (21:19 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 15 Jul 2014 19:36:15 +0000 (21:36 +0200)
commitbbfd1a25eea2d840ee96ba7066476c96bbcf5d6b
tree9ef60ff13aa7cc40ae1896d5d67bb60158d7e7e0
parent23ec4ca1bb995e3f6fbb488e5e05da7af05565a9
MINOR: sample: allow integers to cast to binary

Doing so finally allows to apply the hex converter to integers as well.
Note that all integers are represented in 32-bit, big endian so that their
conversion remains human readable and portable. A later improvement to the
hex converter could be to make it trim leading zeroes, and/or to only report
a number of least significant bytes.
src/sample.c