/*
* <Plugin tail>
* <File "/var/log/exim4/mainlog">
- * PluginName "mail"
+ * Plugin "mail"
* Instance "exim"
* Interval 60
* <Match>
oconfig_item_t *option = ci->children + i;
int status = 0;
- if (strcasecmp("PluginName", option->key) == 0)
+ if (strcasecmp("Plugin", option->key) == 0)
status = cf_util_get_string (option, &plugin_name);
else if (strcasecmp("Instance", option->key) == 0)
status = cf_util_get_string(option, &plugin_instance);
}
for (size_t i = 0; i < tail_match_list_num; i++) {
- ssnprintf(str, sizeof(str), "tail-%zu", i);
+ snprintf(str, sizeof(str), "tail-%zu", i);
plugin_register_complex_read(NULL, str, ctail_read,
tail_match_list_intervals[i],