summaryrefslogtreecommitdiffstats
path: root/src/libstat/backends/mmaped_file.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-06-20 21:58:11 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-06-20 21:58:11 +0100
commit40bc3781bdd94d82ee31c7c23f88e703275bfaac (patch)
tree7a758aeb82fa8d0a78540a9fbc1867c6a036d2fd /src/libstat/backends/mmaped_file.c
parent29c56c31b68a3c55a0b77689b7a3ee141549e485 (diff)
downloadrspamd-40bc3781bdd94d82ee31c7c23f88e703275bfaac.tar.gz
rspamd-40bc3781bdd94d82ee31c7c23f88e703275bfaac.zip
Fix broken types casts in backends.
Diffstat (limited to 'src/libstat/backends/mmaped_file.c')
-rw-r--r--src/libstat/backends/mmaped_file.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/libstat/backends/mmaped_file.c b/src/libstat/backends/mmaped_file.c
index 20bce6212..7c12e092d 100644
--- a/src/libstat/backends/mmaped_file.c
+++ b/src/libstat/backends/mmaped_file.c
@@ -1001,7 +1001,7 @@ rspamd_mmaped_file_learn_token (rspamd_token_t *tok,
}
gulong
-rspamd_mmaped_file_total_learns (struct rspamd_statfile_runtime *runtime,
+rspamd_mmaped_file_total_learns (gpointer runtime,
gpointer ctx)
{
rspamd_mmaped_file_t *mf = (rspamd_mmaped_file_t *)runtime;
@@ -1016,7 +1016,7 @@ rspamd_mmaped_file_total_learns (struct rspamd_statfile_runtime *runtime,
}
gulong
-rspamd_mmaped_file_inc_learns (struct rspamd_statfile_runtime *runtime,
+rspamd_mmaped_file_inc_learns (gpointer runtime,
gpointer ctx)
{
rspamd_mmaped_file_t *mf = (rspamd_mmaped_file_t *)runtime;
@@ -1032,7 +1032,7 @@ rspamd_mmaped_file_inc_learns (struct rspamd_statfile_runtime *runtime,
}
gulong
-rspamd_mmaped_file_dec_learns (struct rspamd_statfile_runtime *runtime,
+rspamd_mmaped_file_dec_learns (gpointer runtime,
gpointer ctx)
{
rspamd_mmaped_file_t *mf = (rspamd_mmaped_file_t *)runtime;
@@ -1049,7 +1049,7 @@ rspamd_mmaped_file_dec_learns (struct rspamd_statfile_runtime *runtime,
ucl_object_t *
-rspamd_mmaped_file_get_stat (struct rspamd_statfile_runtime *runtime,
+rspamd_mmaped_file_get_stat (gpointer runtime,
gpointer ctx)
{
ucl_object_t *res = NULL;
@@ -1080,7 +1080,7 @@ rspamd_mmaped_file_get_stat (struct rspamd_statfile_runtime *runtime,
}
void
-rspamd_mmaped_file_finalize_learn (struct rspamd_statfile_runtime *runtime,
+rspamd_mmaped_file_finalize_learn (gpointer runtime,
gpointer ctx)
{
rspamd_mmaped_file_t *mf = (rspamd_mmaped_file_t *)runtime;