X-Git-Url: https://git.octo.it/?p=collectd.git;a=blobdiff_plain;f=src%2Fpostgresql.c;h=a5bacf49b2a4fc8df8aeaabbbdb2c8b4e3e63e4b;hp=faad16cd9b02b404c5326279bd8fa1aa85e64624;hb=568420ac172981edccb8587cc9651952fe350365;hpb=fd9c88963b04c9e9050a952ba0f018493e8b7638 diff --git a/src/postgresql.c b/src/postgresql.c index faad16cd..a5bacf49 100644 --- a/src/postgresql.c +++ b/src/postgresql.c @@ -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;