From: Ruben Kerkhof Date: Sat, 15 Dec 2018 17:23:55 +0000 (+0100) Subject: daemon/types_list.c: fix minor style issue X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=f03ad26a9152f21c27a86103683b20ca116520bf;p=collectd.git daemon/types_list.c: fix minor style issue --- diff --git a/src/daemon/types_list.c b/src/daemon/types_list.c index 1ccf10bc..c3f590c1 100644 --- a/src/daemon/types_list.c +++ b/src/daemon/types_list.c @@ -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;