From 26b83fa09da16fec02b19873f66f0d08d4df0a9b Mon Sep 17 00:00:00 2001 From: Simon Arlott Date: Thu, 11 Feb 2016 21:58:44 +0000 Subject: [PATCH] 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. --- ssld/ssld.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ssld/ssld.c b/ssld/ssld.c index 9bd7ba37..f5634f68 100644 --- a/ssld/ssld.c +++ b/ssld/ssld.c @@ -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;