X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fperl.c;h=d0c991788675477cf7aadd0c9e720af006b56f54;hb=626d3ab4309cdb069289354c45ca9e2ba9bc9a2f;hp=fffbc21d04e86106ad0fa6b9bd74cd1a2eaed5bb;hpb=175f3e05472ffd71e5133d6f48830915a4581215;p=collectd.git diff --git a/src/perl.c b/src/perl.c index fffbc21d..d0c99178 100644 --- a/src/perl.c +++ b/src/perl.c @@ -33,8 +33,8 @@ /* do not automatically get the thread specific Perl interpreter */ #define PERL_NO_GET_CONTEXT -#include "collectd.h" #include +#include "collectd.h" #include #include @@ -47,8 +47,8 @@ #endif /* DEBUG */ /* ... while we want the definition found in plugin.h. */ -#include "common.h" #include "plugin.h" +#include "utils/common/common.h" #include "filter_chain.h" @@ -863,9 +863,9 @@ static int oconfig_item2hv(pTHX_ oconfig_item_t *ci, HV *hash) { static char *get_module_name(char *buf, size_t buf_len, const char *module) { int status = 0; if (base_name[0] == '\0') - status = snprintf(buf, buf_len, "%s", module); + status = ssnprintf(buf, buf_len, "%s", module); else - status = snprintf(buf, buf_len, "%s::%s", base_name, module); + status = ssnprintf(buf, buf_len, "%s::%s", base_name, module); if ((status < 0) || ((unsigned int)status >= buf_len)) return NULL; return buf;