From: Willy Tarreau Date: Mon, 7 Jul 2014 22:56:27 +0000 (+0200) Subject: BUILD: checks: kill a minor warning on Solaris in external checks X-Git-Tag: v1.6-dev1~379 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=dc3d190b2ccec0ef2f7fbb5ce23e40ac50bcde7a;p=thirdparty%2Fhaproxy.git BUILD: checks: kill a minor warning on Solaris in external checks Gcc on Solaris complains that elem->pid is pid_t and that we display it as int. A simple cast fixes this. No backport needed, this is 1.6 only. --- diff --git a/src/checks.c b/src/checks.c index 0571c58ef0..18faa9bbf6 100644 --- a/src/checks.c +++ b/src/checks.c @@ -1843,7 +1843,7 @@ static struct task *process_chk_proc(struct task *t) status = HCHK_STATUS_PROCOK; } else if (expired) { status = HCHK_STATUS_PROCTOUT; - Warning("kill %d\n", elem->pid); + Warning("kill %d\n", (int)elem->pid); kill(elem->pid, SIGTERM); } set_server_check_status(check, status, NULL);