Code

postgresql plugin: Fix cast (was breaking aliasing rules).
[collectd.git] / src / postgresql.c
index e7b247e77e8fa983d131012d1149c869c24e5ff9..98ceb6d3dc78cec10bd7ed4966ee5d50a7204567 100644 (file)
@@ -971,7 +971,7 @@ static int c_psql_flush (cdtime_t timeout,
        size_t i;
 
        if ((ud != NULL) && (ud->data != NULL)) {
-               dbs = (c_psql_database_t **)&ud->data;
+               dbs = (void *)&ud->data;
                dbs_num = 1;
        }