]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: checks: Make desc argument to set_server_check_status const
authorSimon Horman <horms@verge.net.au>
Tue, 12 Feb 2013 01:45:49 +0000 (10:45 +0900)
committerWilly Tarreau <w@1wt.eu>
Wed, 13 Feb 2013 09:53:16 +0000 (10:53 +0100)
This parameter is not modified by set_server_check_status() and
thus may be const.

Signed-off-by: Simon Horman <horms@verge.net.au>
src/checks.c

index fab13ed497dc31f8c29476bab399147f11dc12b9..820a8c2b0d3fc9de98de73120133268aebbdb996 100644 (file)
@@ -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 */