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
This commit is contained in:
Philippe 'Peep' Chaintreuil 2024-03-02 15:25:28 -05:00
parent 40a5f3f834
commit 7d40cdaf44
1 changed files with 2 additions and 2 deletions

View File

@ -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"