mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-22 02:51:03 +00:00
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:
parent
40a5f3f834
commit
7d40cdaf44
1 changed files with 2 additions and 2 deletions
|
@ -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"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue