]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: tools: make parse_size_err() support 32/64 bits
authorWilly Tarreau <w@1wt.eu>
Tue, 19 Nov 2024 08:15:19 +0000 (09:15 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 19 Nov 2024 09:50:42 +0000 (10:50 +0100)
commit82f190f8822c34137b8e0fcc6a7ca5efbc41d53d
treee7ecfc81de64c5014f762e3ee8433e6452c22f29
parent9c6ccb8dbb242aec2844d9eff2d5e73c96756e73
MINOR: tools: make parse_size_err() support 32/64 bits

parse_size_err() currently is a function working only on an uint. It's
not convenient for certain elements such as rings on large machines.

This commit addresses this by having one function for uints and one
for ullong, and making parse_size_err() a macro that automatically
calls one or the other. It also has the benefit of automatically
supporting compatible types (long, size_t etc).
include/haproxy/tools.h
src/tools.c