This parameter is not modified by set_server_check_status() and
thus may be const.

Signed-off-by: Simon Horman <ho...@verge.net.au>
---
 src/checks.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/checks.c b/src/checks.c
index a933bba..ca5a7ec 100644
--- a/src/checks.c
+++ b/src/checks.c
@@ -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 */
-- 
1.7.10.4


Reply via email to