diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2012-03-01 16:45:38 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2012-03-01 16:45:38 +0400 |
commit | 7dcf9f9bade26ca02b8706a2e4cb2066f6ba7b00 (patch) | |
tree | f69121ee5c1a0e43fe987db8ed2c9e5cc66c79f0 /src/binlog.c | |
parent | c93cca709b13da41b8d5bcd08874d75669e125f0 (diff) | |
download | rspamd-7dcf9f9bade26ca02b8706a2e4cb2066f6ba7b00.tar.gz rspamd-7dcf9f9bade26ca02b8706a2e4cb2066f6ba7b00.zip |
Use DB_HASH access method for bdb backend.
Fix signed and unsigned comparasion while I'm here.
Diffstat (limited to 'src/binlog.c')
-rw-r--r-- | src/binlog.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/binlog.c b/src/binlog.c index f87a81b00..47070b3af 100644 --- a/src/binlog.c +++ b/src/binlog.c @@ -483,7 +483,7 @@ binlog_sync (struct rspamd_binlog *log, guint64 from_rev, guint64 *from_time, GB } (*rep)->data = g_malloc (idx->len); - if ((read (log->fd, (*rep)->data, idx->len)) != idx->len) { + if ((read (log->fd, (*rep)->data, idx->len)) != (ssize_t)idx->len) { msg_warn ("cannot read file %s, error %d, %s", log->filename, errno, strerror (errno)); res = FALSE; goto end; |