[dovecot-cvs] dovecot/src/lib-index mail-cache-fields.c, 1.12,
1.13 mail-cache-lookup.c, 1.28, 1.29 mail-cache.h, 1.21,
1.22 mail-index-view-sync.c, 1.39, 1.40 mail-index.h, 1.147, 1.148
cras at dovecot.org
cras at dovecot.org
Fri Apr 8 15:14:44 EEST 2005
Update of /var/lib/cvs/dovecot/src/lib-index
In directory talvi:/tmp/cvs-serv22164/lib-index
Modified Files:
mail-cache-fields.c mail-cache-lookup.c mail-cache.h
mail-index-view-sync.c mail-index.h
Log Message:
Several size_t -> unsigned int changes. Try to keep "unsigned int" for
counters, size_t for actual memory range sizes.
Index: mail-cache-fields.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-index/mail-cache-fields.c,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -d -r1.12 -r1.13
--- mail-cache-fields.c 15 Dec 2004 17:24:44 -0000 1.12
+++ mail-cache-fields.c 8 Apr 2005 12:14:42 -0000 1.13
@@ -13,7 +13,7 @@
void mail_cache_register_fields(struct mail_cache *cache,
struct mail_cache_field *fields,
- size_t fields_count)
+ unsigned int fields_count)
{
void *orig_key, *orig_value;
unsigned int new_idx;
Index: mail-cache-lookup.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-index/mail-cache-lookup.c,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -d -r1.28 -r1.29
--- mail-cache-lookup.c 12 Mar 2005 18:16:29 -0000 1.28
+++ mail-cache-lookup.c 8 Apr 2005 12:14:42 -0000 1.29
@@ -372,7 +372,7 @@
struct header_lookup_context {
unsigned int *fields;
- size_t fields_count;
+ unsigned int fields_count;
buffer_t *data;
unsigned int max_field;
@@ -425,7 +425,7 @@
int mail_cache_lookup_headers(struct mail_cache_view *view, string_t *dest,
uint32_t seq, unsigned int fields[],
- size_t fields_count)
+ unsigned int fields_count)
{
struct mail_cache *cache = view->cache;
struct header_lookup_context ctx;
Index: mail-cache.h
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-index/mail-cache.h,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -d -r1.21 -r1.22
--- mail-cache.h 31 Jan 2005 18:03:43 -0000 1.21
+++ mail-cache.h 8 Apr 2005 12:14:42 -0000 1.22
@@ -45,7 +45,7 @@
/* Register fields. fields[].idx is updated to contain field index. */
void mail_cache_register_fields(struct mail_cache *cache,
struct mail_cache_field *fields,
- size_t fields_count);
+ unsigned int fields_count);
/* Returns registered field index, or (unsigned int)-1 if not found. */
unsigned int
mail_cache_register_lookup(struct mail_cache *cache, const char *name);
@@ -85,7 +85,7 @@
0 if not, -1 if error. dest is updated only if all fields were found. */
int mail_cache_lookup_headers(struct mail_cache_view *view, string_t *dest,
uint32_t seq, unsigned int fields[],
- size_t fields_count);
+ unsigned int fields_count);
/* "Error in index cache file %s: ...". */
void mail_cache_set_corrupted(struct mail_cache *cache, const char *fmt, ...)
Index: mail-index-view-sync.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-index/mail-index-view-sync.c,v
retrieving revision 1.39
retrieving revision 1.40
diff -u -d -r1.39 -r1.40
--- mail-index-view-sync.c 24 Mar 2005 20:09:50 -0000 1.39
+++ mail-index-view-sync.c 8 Apr 2005 12:14:42 -0000 1.40
@@ -363,7 +363,7 @@
const uint32_t *
mail_index_view_sync_get_expunges(struct mail_index_view_sync_ctx *ctx,
- size_t *count_r)
+ unsigned int *count_r)
{
const uint32_t *data;
size_t size;
Index: mail-index.h
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-index/mail-index.h,v
retrieving revision 1.147
retrieving revision 1.148
diff -u -d -r1.147 -r1.148
--- mail-index.h 7 Apr 2005 22:22:18 -0000 1.147
+++ mail-index.h 8 Apr 2005 12:14:42 -0000 1.148
@@ -252,7 +252,7 @@
struct mail_index_sync_rec *sync_rec);
const uint32_t *
mail_index_view_sync_get_expunges(struct mail_index_view_sync_ctx *ctx,
- size_t *count_r);
+ unsigned int *count_r);
void mail_index_view_sync_end(struct mail_index_view_sync_ctx *ctx);
/* Returns the index header. */
More information about the dovecot-cvs
mailing list