1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-22 02:51:03 +00:00

Merge pull request #1415 from Philippe23/fix-sscanf-warnings

network: Fix sscanf format warnings
This commit is contained in:
Kenyon Ralph 2024-03-02 14:42:05 -08:00 committed by GitHub
commit 294837506e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -184,8 +184,8 @@ int acquire() {
if (nif ++ < 0) { continue; } if (nif ++ < 0) { continue; }
char if_id[64]; char if_id[64];
uint_fast64_t r_bytes, r_packets, r_errs, r_drop, r_fifo, r_frame, r_compressed, r_multicast; unsigned long long 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 t_bytes, t_packets, t_errs, t_drop, t_fifo, t_frame, t_compressed, t_multicast;
sscanf(line, "%s" sscanf(line, "%s"
" " " "
"%llu %llu %llu %llu %llu %llu %llu %llu" "%llu %llu %llu %llu %llu %llu %llu %llu"