X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fnotify_nagios.c;h=57a034da886be318f53a5a20208a41152653da47;hb=99db6e480437d6dd6cf80580d19a65855768a727;hp=c53294b2ba47a1c3579bbe39b665c66c75799328;hpb=a5377cf935630082f2eac2e5f4a538844cc06c8d;p=collectd.git diff --git a/src/notify_nagios.c b/src/notify_nagios.c index c53294b2..57a034da 100644 --- a/src/notify_nagios.c +++ b/src/notify_nagios.c @@ -43,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;