MINOR: cache: Avoid usage of atoi() when parsing "max-object-size".
authorFrédéric Lécaille <flecaille@haproxy.com>
Thu, 25 Oct 2018 18:29:31 +0000 (20:29 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 26 Oct 2018 02:54:40 +0000 (04:54 +0200)
commit4eba544e246c83dee467aee2de66ae2f0f4e8e1c
tree7242849663d8b903c242bd8e3f64b8fcb773a270
parent4c8aa117f9bda3b5253f03ad5a7135a9165060f5
MINOR: cache: Avoid usage of atoi() when parsing "max-object-size".

With this patch we avoid parsing "max-object-size" with atoi() and we store its
value as an unsigned int to prevent bad implicit conversion issues especially
when we compare it with others unsigned value (content length).
src/cache.c