X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fperl.c;h=0a4ae71d13ce0f0643a8e805d67854cb4835684a;hb=5ebc182261321f0781f38d8645bfc7c74353434c;hp=31c68ad78f4b03d72bdd3b853cf1689455ed333b;hpb=e11b359144492baa97d648efc700203d0b56d32e;p=collectd.git diff --git a/src/perl.c b/src/perl.c index 31c68ad7..0a4ae71d 100644 --- a/src/perl.c +++ b/src/perl.c @@ -33,6 +33,7 @@ /* do not automatically get the thread specific Perl interpreter */ #define PERL_NO_GET_CONTEXT +#include "collectd.h" #include #include @@ -46,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" @@ -862,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;