summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f01c3e1)
raw | patch | inline | side by side (parent: f01c3e1)
author | Pavel Rochnyack <pavel2000@ngs.ru> | |
Thu, 11 Aug 2016 10:01:52 +0000 (16:01 +0600) | ||
committer | Pavel Rochnyack <pavel2000@ngs.ru> | |
Fri, 16 Sep 2016 04:46:26 +0000 (10:46 +0600) |
src/perl.c | patch | blob | history |
diff --git a/src/perl.c b/src/perl.c
index 1dd57a2beb134207663d23994cf3f878626318f9..700bb989cb856d8a24757690ab2b3a89cd52bff5 100644 (file)
--- a/src/perl.c
+++ b/src/perl.c
static void _plugin_unregister_generic (pTHX,
perl_unregister_function_t *unreg, const char *desc)
{
- char cb_name[DATA_MAX_NAME_LEN];
-
dXSARGS;
if (1 != items) {
log_debug ("Collectd::plugin_unregister_%s: plugin = \"%s\"",
desc, SvPV_nolen (ST (0)));
- ssnprintf (cb_name, sizeof (cb_name), "perl/%s", SvPV_nolen (ST (0)));
-
- unreg(cb_name);
+ unreg(SvPV_nolen (ST (0)));
XSRETURN_EMPTY;