From: Ruben Kerkhof Date: Sat, 15 Dec 2018 17:23:55 +0000 (+0100) Subject: daemon/types_list.c: fix minor style issue X-Git-Tag: collectd-5.9.0~68^2~18 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f03ad26a9152f21c27a86103683b20ca116520bf;p=thirdparty%2Fcollectd.git daemon/types_list.c: fix minor style issue --- diff --git a/src/daemon/types_list.c b/src/daemon/types_list.c index 1ccf10bcb..c3f590c15 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;