diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-04-30 13:26:51 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-04-30 13:26:51 +0100 |
commit | d6643f35d783784911ad2e2ca754bcfed29eb11d (patch) | |
tree | 55554d57d4439e278788a261eb5ad7e5016a1372 /test | |
parent | 7e66b3bd08dbca9356013a3777f786076d1dacea (diff) | |
download | rspamd-d6643f35d783784911ad2e2ca754bcfed29eb11d.tar.gz rspamd-d6643f35d783784911ad2e2ca754bcfed29eb11d.zip |
Refactor config API.
Diffstat (limited to 'test')
-rw-r--r-- | test/rspamd_dkim_test.c | 6 | ||||
-rw-r--r-- | test/rspamd_dns_test.c | 6 | ||||
-rw-r--r-- | test/rspamd_test_suite.c | 6 |
3 files changed, 9 insertions, 9 deletions
diff --git a/test/rspamd_dkim_test.c b/test/rspamd_dkim_test.c index a0c6332e4..bd2508262 100644 --- a/test/rspamd_dkim_test.c +++ b/test/rspamd_dkim_test.c @@ -65,12 +65,12 @@ rspamd_dkim_test_func () rspamd_dkim_key_t *key; rspamd_mempool_t *pool; struct rspamd_dns_resolver *resolver; - struct config_file *cfg; + struct rspamd_config *cfg; GError *err = NULL; struct rspamd_async_session *s; - cfg = (struct config_file *)g_malloc (sizeof (struct config_file)); - bzero (cfg, sizeof (struct config_file)); + cfg = (struct rspamd_config *)g_malloc (sizeof (struct rspamd_config)); + bzero (cfg, sizeof (struct rspamd_config)); cfg->cfg_pool = rspamd_mempool_new (rspamd_mempool_suggest_size ()); cfg->dns_retransmits = 10; cfg->dns_timeout = 1000; diff --git a/test/rspamd_dns_test.c b/test/rspamd_dns_test.c index 897ed4253..781b39503 100644 --- a/test/rspamd_dns_test.c +++ b/test/rspamd_dns_test.c @@ -66,13 +66,13 @@ void rspamd_dns_test_func () { struct rspamd_dns_resolver *resolver; - struct config_file *cfg; + struct rspamd_config *cfg; rspamd_mempool_t *pool; struct rspamd_async_session *s; struct in_addr ina; - cfg = (struct config_file *)g_malloc (sizeof (struct config_file)); - bzero (cfg, sizeof (struct config_file)); + cfg = (struct rspamd_config *)g_malloc (sizeof (struct rspamd_config)); + bzero (cfg, sizeof (struct rspamd_config)); cfg->cfg_pool = rspamd_mempool_new (rspamd_mempool_suggest_size ()); cfg->dns_retransmits = 10; cfg->dns_timeout = 1000; diff --git a/test/rspamd_test_suite.c b/test/rspamd_test_suite.c index fedcfd3eb..7bd86d483 100644 --- a/test/rspamd_test_suite.c +++ b/test/rspamd_test_suite.c @@ -11,7 +11,7 @@ worker_t *workers[] = { NULL }; int main (int argc, char **argv) { - struct config_file *cfg; + struct rspamd_config *cfg; g_test_init (&argc, &argv, NULL); @@ -25,9 +25,9 @@ main (int argc, char **argv) memset (rspamd_main, 0, sizeof (struct rspamd_main)); rspamd_main->server_pool = rspamd_mempool_new (rspamd_mempool_suggest_size ()); - rspamd_main->cfg = (struct config_file *)g_malloc (sizeof (struct config_file)); + rspamd_main->cfg = (struct rspamd_config *)g_malloc (sizeof (struct rspamd_config)); cfg = rspamd_main->cfg; - bzero (cfg, sizeof (struct config_file)); + bzero (cfg, sizeof (struct rspamd_config)); cfg->cfg_pool = rspamd_mempool_new (rspamd_mempool_suggest_size ()); base = event_init (); |