mirror of
https://github.com/haproxy/haproxy.git
synced 2026-06-03 13:58:24 -04:00
CLEANUP: checks: Make desc argument to set_server_check_status const
This parameter is not modified by set_server_check_status() and thus may be const. Signed-off-by: Simon Horman <horms@verge.net.au>
This commit is contained in:
parent
5269cfb458
commit
007f2a2d24
1 changed files with 1 additions and 1 deletions
|
|
@ -198,7 +198,7 @@ static void server_status_printf(struct chunk *msg, struct server *s, unsigned o
|
|||
* Show information in logs about failed health check if server is UP
|
||||
* or succeeded health checks if server is DOWN.
|
||||
*/
|
||||
static void set_server_check_status(struct server *s, short status, char *desc)
|
||||
static void set_server_check_status(struct server *s, short status, const char *desc)
|
||||
{
|
||||
if (status == HCHK_STATUS_START) {
|
||||
s->result = SRV_CHK_UNKNOWN; /* no result yet */
|
||||
|
|
|
|||
Loading…
Reference in a new issue