X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fnotify_nagios.c;h=57a034da886be318f53a5a20208a41152653da47;hb=13009ee6db333a1dc538c09fc5aafb2446db9b39;hp=c53294b2ba47a1c3579bbe39b665c66c75799328;hpb=4103105fb43cd72294f165b2541540b3a8a99532;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;