X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Ftail.c;h=fbba4788fe5b514b27c9891c8b000fcb645ce27d;hb=cfdac9062577bc7b32b44e4090adf80d93171749;hp=f7f061a961ec5a17033702afb401a3314cf6e9ba;hpb=3259a9bec97cf502a780d70c0ab2a3394f8a6407;p=collectd.git diff --git a/src/tail.c b/src/tail.c index f7f061a9..fbba4788 100644 --- a/src/tail.c +++ b/src/tail.c @@ -34,7 +34,7 @@ /* * * - * PluginName "mail" + * Plugin "mail" * Instance "exim" * Interval 60 * @@ -233,7 +233,7 @@ static int ctail_config_add_file(oconfig_item_t *ci) { 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); @@ -317,7 +317,7 @@ static int ctail_init(void) { } 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],