netfilter: hashlimit: prefer PRIu64 to avoid warnings on 32bit platforms
Florian Westphal
maintainerPATCH 1/1 netfilter: hashlimit: prefer PRIu64 to avoid warnings on 32bit platforms
From: Duncan Roe <[email protected]>
I found this patch attached to an older BZ, apply this finally...
Signed-off-by Florian Westphal <[email protected]>
--- extensions/libxt_hashlimit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
extensions/libxt_hashlimit.c +1 -1
@@ -772,7 +772,7 @@ static void hashlimit_mt_check(struct xt_fcheck_call *cb)if (cb->xflags &F_BURST ) {if (info->cfg.burst <cost_to_bytes (info->cfg.avg))xtables_error (PARAMETER_PROBLEM , -"burst cannot be smaller than %lub" ,cost_to_bytes (info->cfg.avg)); +"burst cannot be smaller than %" PRIu64"b" ,cost_to_bytes (info->cfg.avg)); burst = info->cfg.burst; burst /=cost_to_bytes (info->cfg.avg);
Signature · 1 line
2.21.0
Pablo Neira Ayuso
maintainerQuoted 3 lines · Florian Westphal
From: Duncan Roe <[email protected]>
I found this patch attached to an older BZ, apply this finally...
LGTM.