From f03ad26a9152f21c27a86103683b20ca116520bf Mon Sep 17 00:00:00 2001 From: Ruben Kerkhof Date: Sat, 15 Dec 2018 18:23:55 +0100 Subject: [PATCH] daemon/types_list.c: fix minor style issue --- src/daemon/types_list.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.11.0