diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-02-05 19:48:07 +0300 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-02-05 19:48:07 +0300 |
commit | bf6f2838403722ea571daaeec5981831313d474b (patch) | |
tree | 25fe553ce04b9f724537364c44889a7d326566b7 /src/statfile.c | |
parent | 32a96e82d075bdba6e9e567080977a76830cbce2 (diff) | |
download | rspamd-bf6f2838403722ea571daaeec5981831313d474b.tar.gz rspamd-bf6f2838403722ea571daaeec5981831313d474b.zip |
* Add some comments and documentation
Diffstat (limited to 'src/statfile.c')
-rw-r--r-- | src/statfile.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/statfile.c b/src/statfile.c index 82e17a0ec..3b31144d9 100644 --- a/src/statfile.c +++ b/src/statfile.c @@ -182,6 +182,7 @@ statfile_pool_close (statfile_pool_t *pool, char *filename, gboolean remove_hash if (remove_hash) { rspamd_hash_remove (pool->files, file->filename); } + return 0; } int @@ -376,8 +377,8 @@ statfile_pool_set_block (statfile_pool_t *pool, char *filename, uint32_t h1, uin block->value = value; } -int +gboolean statfile_pool_is_open (statfile_pool_t *pool, char *filename) { - return rspamd_hash_lookup (pool->files, filename) != NULL; + return (rspamd_hash_lookup (pool->files, filename) != NULL); } |