Mercurial > dovecot > original-hg > dovecot-1.2
changeset 4842:57c5e40e26dd HEAD
Compile fix
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sun, 19 Nov 2006 16:35:55 +0200 |
parents | c04ecbc7bdc8 |
children | 57955b19a35d |
files | src/lib-index/mail-transaction-log-view.c |
diffstat | 1 files changed, 2 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-index/mail-transaction-log-view.c Sun Nov 19 15:36:35 2006 +0200 +++ b/src/lib-index/mail-transaction-log-view.c Sun Nov 19 16:35:55 2006 +0200 @@ -19,7 +19,7 @@ /* a list of log files we've referenced. we have to keep this list explicitly because more files may be added into the linked list at any time. */ - array_t ARRAY_DEFINE(file_refs, struct mail_transaction_log_file *); + ARRAY_DEFINE(file_refs, struct mail_transaction_log_file *); struct mail_transaction_log_file *cur, *head, *tail; uoff_t cur_offset; @@ -40,8 +40,7 @@ view->head = view->tail = view->log->head; view->head->refcount++; - ARRAY_CREATE(&view->file_refs, default_pool, - struct mail_transaction_log_file *, 8); + i_array_init(&view->file_refs, 8); array_append(&view->file_refs, &view->head, 1); view->next = log->views;