X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fnotify_nagios.c;h=57a034da886be318f53a5a20208a41152653da47;hb=13009ee6db333a1dc538c09fc5aafb2446db9b39;hp=c16922232b4deb49250ff03b36f0c760251d7a7e;hpb=362a519e00d50fc3657d485135075f753ec71bab;p=collectd.git diff --git a/src/notify_nagios.c b/src/notify_nagios.c index c1692223..57a034da 100644 --- a/src/notify_nagios.c +++ b/src/notify_nagios.c @@ -25,6 +25,7 @@ */ #include "collectd.h" + #include "plugin.h" #include "common.h" #include "configfile.h" @@ -42,9 +43,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;