From: Ruben Kerkhof Date: Sat, 15 Dec 2018 17:50:18 +0000 (+0100) Subject: oracle plugin: remove unneccesary cast X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=50339a2982d56ec9faad833d9a5e589329be52f9;p=collectd.git oracle plugin: remove unneccesary cast --- diff --git a/src/oracle.c b/src/oracle.c index 1b17d9c3..1982aeef 100644 --- a/src/oracle.c +++ b/src/oracle.c @@ -247,9 +247,7 @@ static int o_config_add_database(oconfig_item_t *ci) /* {{{ */ } /* while (status == 0) */ while ((status == 0) && (db->queries_num > 0)) { - db->q_prep_areas = (udb_query_preparation_area_t **)calloc( - db->queries_num, sizeof(*db->q_prep_areas)); - + db->q_prep_areas = calloc(db->queries_num, sizeof(*db->q_prep_areas)); if (db->q_prep_areas == NULL) { WARNING("oracle plugin: calloc failed"); status = -1;