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.
This commit is contained in:
Willy Tarreau 2014-07-08 00:56:27 +02:00
parent 9b39dc5e49
commit dc3d190b2c
1 changed files with 1 additions and 1 deletions

View File

@ -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);