[dovecot-cvs] dovecot/src/lib-index mail-index-sync-update.c, 1.20,
1.21 mail-index-sync-private.h, 1.7, 1.8
cras at procontrol.fi
cras at procontrol.fi
Sun May 30 07:32:38 EEST 2004
Update of /home/cvs/dovecot/src/lib-index
In directory talvi:/tmp/cvs-serv22195
Modified Files:
mail-index-sync-update.c mail-index-sync-private.h
Log Message:
fixes
Index: mail-index-sync-update.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib-index/mail-index-sync-update.c,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -d -r1.20 -r1.21
--- a/mail-index-sync-update.c 26 May 2004 15:35:09 -0000 1.20
+++ b/mail-index-sync-update.c 30 May 2004 04:32:36 -0000 1.21
@@ -53,8 +53,8 @@
hdr->first_deleted_uid_lowwater = rec->uid;
}
-void mail_index_sync_expunge(struct mail_index_view *view,
- const struct mail_transaction_expunge *e)
+static void mail_index_sync_expunge(struct mail_index_view *view,
+ const struct mail_transaction_expunge *e)
{
struct mail_index_map *map = view->map;
struct mail_index_header *hdr = &map->hdr_copy;
@@ -84,7 +84,8 @@
view->messages_count -= count;
if (map->buffer != NULL) {
- buffer_set_used_size(map->buffer, map->records_count);
+ buffer_set_used_size(map->buffer,
+ map->records_count * sizeof(*rec));
map->records = buffer_get_modifyable_data(map->buffer, NULL);
}
}
Index: mail-index-sync-private.h
===================================================================
RCS file: /home/cvs/dovecot/src/lib-index/mail-index-sync-private.h,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- a/mail-index-sync-private.h 24 May 2004 01:50:16 -0000 1.7
+++ b/mail-index-sync-private.h 30 May 2004 04:32:36 -0000 1.8
@@ -26,9 +26,6 @@
int mail_index_sync_update_index(struct mail_index_sync_ctx *sync_ctx);
-void mail_index_sync_expunge(struct mail_index_view *view,
- const struct mail_transaction_expunge *e);
-
void
mail_index_sync_get_expunge(struct mail_index_sync_rec *rec,
const struct mail_transaction_expunge *exp);
More information about the dovecot-cvs
mailing list