0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-19 08:21:09 +01:00

ssld: fix format string warnings for statistics

Cast the uint64_t format arguments to unsigned long long as
that's what the format string specifies.
This commit is contained in:
Simon Arlott 2016-02-11 21:58:44 +00:00
parent 08006c16f8
commit 26b83fa09d
No known key found for this signature in database
GPG key ID: BAFFFF5FF5FFAAAF

View file

@ -815,7 +815,10 @@ process_stats(mod_ctl_t * ctl, mod_ctl_buf_t * ctlb)
return;
snprintf(outstat, sizeof(outstat), "S %s %llu %llu %llu %llu", odata,
conn->plain_out, conn->mod_in, conn->plain_in, conn->mod_out);
(unsigned long long)conn->plain_out,
(unsigned long long)conn->mod_in,
(unsigned long long)conn->plain_in,
(unsigned long long)conn->mod_out);
conn->plain_out = 0;
conn->plain_in = 0;
conn->mod_in = 0;