X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fpostgresql.c;h=43f5af563af18e04d7a5478030565aa26055e93d;hb=7c84372528ab858cc8ea8a4bc6ee577f7ef3026a;hp=9438c576039a64547bfd787430b02e3b1ad09431;hpb=424adfdc39de5a338bfef18a150c0557b79d3b49;p=collectd.git diff --git a/src/postgresql.c b/src/postgresql.c index 9438c576..43f5af56 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;