BUILD: dumpstats: silencing warning for printf format specifier / time_t

time_t is not necesseraly a long int (spotted in OpenBSD), so just an explicit cast to
avoid the compiler warning. should be safe enough.
This commit is contained in:
David Carlier 2015-11-18 06:10:22 +00:00 committed by Willy Tarreau
parent ce1ef4df01
commit 081b336f7d

View File

@ -2816,7 +2816,7 @@ static void dump_servers_state(struct proxy *backend, struct chunk *buf)
"\n",
backend->uuid, backend->id,
srv->puid, srv->id, srv_addr,
srv->state, srv->admin, srv->uweight, srv->iweight, srv_time_since_last_change,
srv->state, srv->admin, srv->uweight, srv->iweight, (long int)srv_time_since_last_change,
srv->check.status, srv->check.result, srv->check.health, srv->check.state, srv->agent.state,
bk_f_forced_id, srv_f_forced_id);