X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fdaemon%2Ftypes_list.c;h=9c61040920c53c86bb9b9e7469aebd758d0b92d9;hb=6378ec288f34ff250b2971a1452338a2b34c240a;hp=1ccf10bcb6deb7d3f041ceaee16bc7a0171d3198;hpb=687e10aea101bf6338d31e69dd6537202bc5acc1;p=collectd.git diff --git a/src/daemon/types_list.c b/src/daemon/types_list.c index 1ccf10bc..9c610409 100644 --- a/src/daemon/types_list.c +++ b/src/daemon/types_list.c @@ -26,7 +26,7 @@ #include "collectd.h" -#include "common.h" +#include "utils/common/common.h" #include "configfile.h" #include "plugin.h" @@ -113,7 +113,7 @@ static void parse_line(char *buf) { sstrncpy(ds->type, fields[0], sizeof(ds->type)); ds->ds_num = fields_num - 1; - ds->ds = (data_source_t *)calloc(ds->ds_num, sizeof(data_source_t)); + ds->ds = calloc(ds->ds_num, sizeof(*ds->ds)); if (ds->ds == NULL) { sfree(ds); return;