diff --git a/test/ptest.c b/test/ptest.c index f52b7b3c..151c4341 100644 --- a/test/ptest.c +++ b/test/ptest.c @@ -422,8 +422,8 @@ int main(int argc, char **argv){ (void) openlog("pilerimport", LOG_PID, LOG_MAIL); - load_rules(&sdata, &(data.archiving_rules), SQL_ARCHIVING_RULE_TABLE); - load_rules(&sdata, &(data.retention_rules), SQL_RETENTION_RULE_TABLE); + load_rules(&sdata, &data, &(data.archiving_rules), SQL_ARCHIVING_RULE_TABLE); + load_rules(&sdata, &data, &(data.retention_rules), SQL_RETENTION_RULE_TABLE); load_mydomains(&sdata, &data, &cfg);