From 7d40cdaf44808017f70ca80ed36e0a81e63b95a6 Mon Sep 17 00:00:00 2001 From: Philippe 'Peep' Chaintreuil Date: Sat, 2 Mar 2024 15:25:28 -0500 Subject: [PATCH] network: Fix sscanf format warnings Compilers warn that "%llu" doesn't match the uint_fast64_t type for all machines. These are just being sscanf()'ed to be sprintf()'ed a few lines later, there's no need for performance. These can just be vanilla "unsigned long long"'s to match the existing format specifiers. Closes: https://github.com/munin-monitoring/contrib/pull/1415 --- plugins/network/if1sec-c.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/network/if1sec-c.c b/plugins/network/if1sec-c.c index 6cab7235..f82dab1d 100644 --- a/plugins/network/if1sec-c.c +++ b/plugins/network/if1sec-c.c @@ -184,8 +184,8 @@ int acquire() { if (nif ++ < 0) { continue; } char if_id[64]; - uint_fast64_t r_bytes, r_packets, r_errs, r_drop, r_fifo, r_frame, r_compressed, r_multicast; - uint_fast64_t t_bytes, t_packets, t_errs, t_drop, t_fifo, t_frame, t_compressed, t_multicast; + unsigned long long r_bytes, r_packets, r_errs, r_drop, r_fifo, r_frame, r_compressed, r_multicast; + unsigned long long t_bytes, t_packets, t_errs, t_drop, t_fifo, t_frame, t_compressed, t_multicast; sscanf(line, "%s" " " "%llu %llu %llu %llu %llu %llu %llu %llu"