BUILD: sample: use strtoll() instead of atoll()
authorWilly Tarreau <w@1wt.eu>
Fri, 14 May 2021 06:51:53 +0000 (08:51 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 14 May 2021 06:51:53 +0000 (08:51 +0200)
commitfb601956db501a4ac4e6ea37cc264203bf38aa3c
tree82d50d73ed5a6d234e6124fb2161d6130c6c5fb1
parent388fc2591543c64bd10a2b53b66004ba95a5b680
BUILD: sample: use strtoll() instead of atoll()

atoll() is not portable, but strtoll() is more common. We must pass NULL
to the end pointer however since the parser must consume digits and stop
at the first non-digit char. No backport is needed as this was introduced
in 2.4-dev17 with commit 51c8ad45c ("MINOR: sample: converter: Add json_query
converter").
src/sample.c