MINOR: server: use ha_alert in server parsing functions
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 28 May 2021 14:35:05 +0000 (16:35 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Mon, 7 Jun 2021 15:19:33 +0000 (17:19 +0200)
commit5e560e80c7ff5452f883eb30cdfdd350f9af121f
treeee2ebdd1260fb6811d8952bc0ec34af1cbc87481
parent9d0138ab085f4d0ee34fcec4a265b9a8d8aaa4e7
MINOR: server: use ha_alert in server parsing functions

Replace memprintf usage in _srv_parse* functions by ha_alert calls. This
has the advantage to simplify the function prototype by removing an
extra char** argument.

As a consequence, the CLI handler of 'add server' is updated to output
the user messages buffers if not empty.
src/server.c