]> git.ipfire.org Git - thirdparty/haproxy.git/commit
CLEANUP: cli: replace all occurrences of manual handling of return messages
authorWilly Tarreau <w@1wt.eu>
Fri, 9 Aug 2019 09:21:01 +0000 (11:21 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 9 Aug 2019 09:26:10 +0000 (11:26 +0200)
commit9d00869323a7124cd7366630072fb0399dc21dd2
treee74749adf31ed3a01520238c412e28cddb1cca27
parentedb91ad647988f6ac6b7fb9e749597072c5d5e8d
CLEANUP: cli: replace all occurrences of manual handling of return messages

There were 221 places where a status message or an error message were built
to be returned on the CLI. All of them were replaced to use cli_err(),
cli_msg(), cli_dynerr() or cli_dynmsg() depending on what was expected.
This removed a lot of duplicated code because most of the times, 4 lines
are replaced by a single, safer one.
12 files changed:
src/activity.c
src/cli.c
src/debug.c
src/dns.c
src/map.c
src/peers.c
src/proxy.c
src/server.c
src/ssl_sock.c
src/stats.c
src/stick_table.c
src/stream.c