[dovecot-cvs] dovecot/src/lib-index mail-index-transaction.c, 1.26,
1.27 mail-transaction-log.c, 1.58, 1.59
cras at dovecot.org
cras at dovecot.org
Mon Sep 20 23:42:03 EEST 2004
Update of /var/lib/cvs/dovecot/src/lib-index
In directory talvi:/tmp/cvs-serv6236
Modified Files:
mail-index-transaction.c mail-transaction-log.c
Log Message:
type fixes
Index: mail-index-transaction.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-index/mail-index-transaction.c,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -d -r1.26 -r1.27
--- mail-index-transaction.c 19 Sep 2004 23:46:33 -0000 1.26
+++ mail-index-transaction.c 20 Sep 2004 20:42:00 -0000 1.27
@@ -34,7 +34,7 @@
static void mail_index_transaction_free(struct mail_index_transaction *t)
{
buffer_t **recs;
- unsigned int i, size;
+ size_t i, size;
mail_index_view_transaction_unref(t->view);
@@ -112,7 +112,7 @@
struct mail_index *index = t->view->index;
const struct mail_index_extra_record_info *einfos;
buffer_t **updates;
- unsigned int i, size;
+ size_t i, size;
if (mail_index_view_lock(t->view) < 0)
return -1;
Index: mail-transaction-log.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-index/mail-transaction-log.c,v
retrieving revision 1.58
retrieving revision 1.59
diff -u -d -r1.58 -r1.59
--- mail-transaction-log.c 12 Sep 2004 10:34:57 -0000 1.58
+++ mail-transaction-log.c 20 Sep 2004 20:42:00 -0000 1.59
@@ -809,7 +809,7 @@
}
}
- if (file->mmap_base != NULL && st.st_size == file->mmap_size &&
+ if (file->mmap_base != NULL && (uoff_t)st.st_size == file->mmap_size &&
file->buffer_offset <= start_offset) {
/* it's all mmaped already */
i_assert(end_offset == (uoff_t)-1);
More information about the dovecot-cvs
mailing list