Mercurial > dovecot > original-hg > dovecot-1.2
changeset 5733:4b5ce642957d HEAD
Declare a global uint32_t array type.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Thu, 14 Jun 2007 03:05:51 +0300 |
parents | c341ded6a38a |
children | 5f0832288007 |
files | src/lib-index/mail-cache-compress.c src/lib-index/mail-cache-transaction.c src/lib/array-decl.h |
diffstat | 3 files changed, 3 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-index/mail-cache-compress.c Thu Jun 14 02:15:57 2007 +0300 +++ b/src/lib-index/mail-cache-compress.c Thu Jun 14 03:05:51 2007 +0300 @@ -13,8 +13,6 @@ #include <sys/stat.h> -ARRAY_DEFINE_TYPE(ext_offset, uint32_t); - struct mail_cache_copy_context { bool new_msg; buffer_t *buffer, *field_seen; @@ -117,7 +115,7 @@ static int mail_cache_copy(struct mail_cache *cache, struct mail_index_transaction *trans, int fd, uint32_t *file_seq_r, - ARRAY_TYPE(ext_offset) *ext_offsets) + ARRAY_TYPE(uint32_t) *ext_offsets) { struct mail_cache_copy_context ctx; struct mail_index_view *view; @@ -292,7 +290,7 @@ struct dotlock *dotlock; mode_t old_mask; uint32_t file_seq, old_offset; - ARRAY_TYPE(ext_offset) ext_offsets; + ARRAY_TYPE(uint32_t) ext_offsets; const uint32_t *offsets; unsigned int i, count; int fd, ret;
--- a/src/lib-index/mail-cache-transaction.c Thu Jun 14 02:15:57 2007 +0300 +++ b/src/lib-index/mail-cache-transaction.c Thu Jun 14 03:05:51 2007 +0300 @@ -39,8 +39,6 @@ unsigned int changes:1; }; -ARRAY_DEFINE_TYPE(uint32_t, uint32_t); - static int mail_cache_link_unlocked(struct mail_cache *cache, uint32_t old_offset, uint32_t new_offset);