Code

Merge branch 'collectd-4.5'
[collectd.git] / src / postgresql.c
index faad16cd9b02b404c5326279bd8fa1aa85e64624..a5bacf49b2a4fc8df8aeaabbbdb2c8b4e3e63e4b 100644 (file)
@@ -217,8 +217,7 @@ static c_psql_database_t *c_psql_database_new (const char *name)
 
        db->conn = NULL;
 
-       db->conn_complaint.last     = 0;
-       db->conn_complaint.interval = 0;
+       C_COMPLAIN_INIT (&db->conn_complaint);
 
        db->proto_version = 0;