projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
utils_cache_mock: fix annotations
[collectd.git]
/
src
/
dbi.c
diff --git
a/src/dbi.c
b/src/dbi.c
index
655581e
..
273cce8
100644
(file)
--- a/
src/dbi.c
+++ b/
src/dbi.c
@@
-240,7
+240,7
@@
static int cdbi_config_add_database_driver_option (cdbi_database_t *db, /* {{{ *
return (-1);
}
return (-1);
}
- option =
(cdbi_driver_option_t *)
realloc (db->driver_options,
+ option = realloc (db->driver_options,
sizeof (*option) * (db->driver_options_num + 1));
if (option == NULL)
{
sizeof (*option) * (db->driver_options_num + 1));
if (option == NULL)
{
@@
-386,7
+386,7
@@
static int cdbi_config_add_database (oconfig_item_t *ci) /* {{{ */
{
cdbi_database_t **temp;
{
cdbi_database_t **temp;
- temp =
(cdbi_database_t **)
realloc (databases,
+ temp = realloc (databases,
sizeof (*databases) * (databases_num + 1));
if (temp == NULL)
{
sizeof (*databases) * (databases_num + 1));
if (temp == NULL)
{
@@
-510,7
+510,6
@@
static int cdbi_read_database_query (cdbi_database_t *db, /* {{{ */
column_names = NULL;
column_values = NULL;
column_names = NULL;
column_values = NULL;
- res = NULL;
statement = udb_query_get_statement (q);
assert (statement != NULL);
statement = udb_query_get_statement (q);
assert (statement != NULL);