aboutsummaryrefslogtreecommitdiffstats
path: root/src/statfile.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2009-11-12 20:38:20 +0300
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2009-11-12 20:38:20 +0300
commit092a40dcf813accb11a0b6bb600dccea0b35fb1d (patch)
treebc15b37adda2a21575799204dbc528874d2e82c2 /src/statfile.c
parent1ad9f1f651ef3f0ee26d69007dd27e60f99f1f12 (diff)
downloadrspamd-092a40dcf813accb11a0b6bb600dccea0b35fb1d.tar.gz
rspamd-092a40dcf813accb11a0b6bb600dccea0b35fb1d.zip
* Write revision and revision time to statfile
* Make some improvements to API (trying to make it more clear)
Diffstat (limited to 'src/statfile.c')
-rw-r--r--src/statfile.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/statfile.c b/src/statfile.c
index 4b8fe59b9..67bc677bb 100644
--- a/src/statfile.c
+++ b/src/statfile.c
@@ -752,11 +752,11 @@ statfile_get_section_by_name (const char *name)
}
gboolean
-statfile_set_revision (statfile_pool_t *pool, stat_file_t *file, uint64_t rev, time_t time)
+statfile_set_revision (stat_file_t *file, uint64_t rev, time_t time)
{
struct stat_file_header *header;
- if (pool == NULL || file == NULL || file->map == NULL) {
+ if (file == NULL || file->map == NULL) {
return FALSE;
}
@@ -765,15 +765,15 @@ statfile_set_revision (statfile_pool_t *pool, stat_file_t *file, uint64_t rev, t
header->revision = rev;
header->rev_time = time;
- return FALSE;
+ return TRUE;
}
gboolean
-statfile_get_revision (statfile_pool_t *pool, stat_file_t *file, uint64_t *rev, time_t *time)
+statfile_get_revision (stat_file_t *file, uint64_t *rev, time_t *time)
{
struct stat_file_header *header;
- if (pool == NULL || file == NULL || file->map == NULL) {
+ if (file == NULL || file->map == NULL) {
return FALSE;
}
@@ -782,5 +782,5 @@ statfile_get_revision (statfile_pool_t *pool, stat_file_t *file, uint64_t *rev,
*rev = header->revision;
*time = header->rev_time;
- return FALSE;
+ return TRUE;
}