X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fnotify_nagios.c;h=b08c411df202741503e5339342da7d6397beffe1;hb=8acc85b19e44c9bc106484b95cd352d867abdf1c;hp=c16922232b4deb49250ff03b36f0c760251d7a7e;hpb=362a519e00d50fc3657d485135075f753ec71bab;p=collectd.git diff --git a/src/notify_nagios.c b/src/notify_nagios.c index c1692223..b08c411d 100644 --- a/src/notify_nagios.c +++ b/src/notify_nagios.c @@ -25,9 +25,9 @@ */ #include "collectd.h" + #include "plugin.h" #include "common.h" -#include "configfile.h" #define NAGIOS_OK 0 #define NAGIOS_WARNING 1 @@ -42,9 +42,7 @@ static char *nagios_command_file; static int nagios_config (oconfig_item_t *ci) /* {{{ */ { - int i; - - for (i = 0; i < ci->children_num; i++) + for (int i = 0; i < ci->children_num; i++) { oconfig_item_t *child = ci->children + i;