X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fchrony.c;h=0485036a132aecf6ca0a9b1dbf11907b03aa809e;hb=1bdfcf9791729310f75857d0e002c40ef659a89b;hp=9c40dd33950e310dbbec9d5551a8704394340244;hpb=aa3811995bfae69f0d1a0f897acfa4a9a4c0138a;p=collectd.git diff --git a/src/chrony.c b/src/chrony.c index 9c40dd33..0485036a 100644 --- a/src/chrony.c +++ b/src/chrony.c @@ -26,6 +26,7 @@ */ #include "collectd.h" + #include "common.h" /* auxiliary functions */ #include "plugin.h" /* plugin_register_*, plugin_dispatch_values */ @@ -1052,7 +1053,7 @@ chrony_read(void) { /* collectd read callback: Perform data acquisition */ int rc; - unsigned int now_src, n_sources; + unsigned int n_sources; if (g_chrony_seq_is_initialized == 0) { @@ -1074,7 +1075,7 @@ chrony_read(void) if (rc != CHRONY_RC_OK) return rc; - for (now_src = 0; now_src < n_sources; ++now_src) + for (unsigned int now_src = 0; now_src < n_sources; ++now_src) { int is_reachable; rc = chrony_request_source_data(now_src, &is_reachable);