dovecot: Declare a global uint32_t array type.
dovecot at dovecot.org
dovecot at dovecot.org
Thu Jun 14 03:05:59 EEST 2007
details: http://hg.dovecot.org/dovecot/rev/4b5ce642957d
changeset: 5733:4b5ce642957d
user: Timo Sirainen <tss at iki.fi>
date: Thu Jun 14 03:05:51 2007 +0300
description:
Declare a global uint32_t array type.
diffstat:
3 files changed, 3 insertions(+), 6 deletions(-)
src/lib-index/mail-cache-compress.c | 6 ++----
src/lib-index/mail-cache-transaction.c | 2 --
src/lib/array-decl.h | 1 +
diffs (52 lines):
diff -r c341ded6a38a -r 4b5ce642957d src/lib-index/mail-cache-compress.c
--- 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
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 @@ static int mail_cache_compress_locked(st
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;
diff -r c341ded6a38a -r 4b5ce642957d src/lib-index/mail-cache-transaction.c
--- 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
@@ -38,8 +38,6 @@ struct mail_cache_transaction_ctx {
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);
diff -r c341ded6a38a -r 4b5ce642957d src/lib/array-decl.h
--- a/src/lib/array-decl.h Thu Jun 14 02:15:57 2007 +0300
+++ b/src/lib/array-decl.h Thu Jun 14 03:05:51 2007 +0300
@@ -15,5 +15,6 @@ struct array {
};
ARRAY_DEFINE_TYPE(const_string, const char *);
+ARRAY_DEFINE_TYPE(uint32_t, uint32_t);
#endif
More information about the dovecot-cvs
mailing list