X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Fnotify_nagios.c;h=b08c411df202741503e5339342da7d6397beffe1;hb=d7ad0d6a5533eacd589a1293f19905d8eeabbf39;hp=c53294b2ba47a1c3579bbe39b665c66c75799328;hpb=4103105fb43cd72294f165b2541540b3a8a99532;p=collectd.git diff --git a/src/notify_nagios.c b/src/notify_nagios.c index c53294b2..b08c411d 100644 --- a/src/notify_nagios.c +++ b/src/notify_nagios.c @@ -28,7 +28,6 @@ #include "plugin.h" #include "common.h" -#include "configfile.h" #define NAGIOS_OK 0 #define NAGIOS_WARNING 1 @@ -43,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;