projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
21d673e
)
oracle plugin: remove unneccesary cast
author
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Sat, 15 Dec 2018 17:50:18 +0000
(18:50 +0100)
committer
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Sat, 15 Dec 2018 18:40:14 +0000
(19:40 +0100)
src/oracle.c
patch
|
blob
|
history
diff --git
a/src/oracle.c
b/src/oracle.c
index
1b17d9c
..
1982aee
100644
(file)
--- 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;