# HG changeset patch # User Timo Sirainen # Date 1163946955 -7200 # Node ID 57c5e40e26dd44ca60f01d40f8b07074620e315a # Parent c04ecbc7bdc89e09565cd8d52ae76892d83cb517 Compile fix diff -r c04ecbc7bdc8 -r 57c5e40e26dd src/lib-index/mail-transaction-log-view.c --- 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;