]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUILD: checks: kill a minor warning on Solaris in external checks
authorWilly Tarreau <w@1wt.eu>
Mon, 7 Jul 2014 22:56:27 +0000 (00:56 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 7 Jul 2014 23:13:33 +0000 (01:13 +0200)
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.

src/checks.c

index 0571c58ef0ded1207248e72165e99883a4e1a311..18faa9bbf6609791661878a7d8996535d386e8ad 100644 (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);