From 50339a2982d56ec9faad833d9a5e589329be52f9 Mon Sep 17 00:00:00 2001 From: Ruben Kerkhof Date: Sat, 15 Dec 2018 18:50:18 +0100 Subject: [PATCH] oracle plugin: remove unneccesary cast --- src/oracle.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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; -- 2.11.0