changeset 194:d82e7d23a28d HEAD

more size_t fixes
author Timo Sirainen <tss@iki.fi>
date Sun, 08 Sep 2002 18:22:45 +0300
parents c095607a1a28
children db6e288be0e9
files src/lib-index/mail-index-update.c src/lib-index/mbox/mbox-fsck.c src/lib-index/mbox/mbox-index.c src/lib-index/mbox/mbox-rewrite.c
diffstat 4 files changed, 6 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/src/lib-index/mail-index-update.c	Sun Sep 08 18:19:39 2002 +0300
+++ b/src/lib-index/mail-index-update.c	Sun Sep 08 18:22:45 2002 +0300
@@ -276,7 +276,7 @@
 }
 
 void mail_index_update_field(MailIndexUpdate *update, MailField field,
-			     const char *value, unsigned int extra_space)
+			     const char *value, size_t extra_space)
 {
 	update_field_full(update, field, value, strlen(value) + 1, extra_space);
 }
--- a/src/lib-index/mbox/mbox-fsck.c	Sun Sep 08 18:19:39 2002 +0300
+++ b/src/lib-index/mbox/mbox-fsck.c	Sun Sep 08 18:22:45 2002 +0300
@@ -36,7 +36,7 @@
 				unsigned char current_digest[16])
 {
 	const unsigned char *old_digest;
-	unsigned int size;
+	size_t size;
 
 	/* MD5 sums must match */
 	old_digest = index->lookup_field_raw(index, rec, FIELD_TYPE_MD5, &size);
@@ -84,7 +84,7 @@
 {
 	const void *part_data;
 	void *part_data_copy;
-	unsigned int size;
+	size_t size;
 
 	/* update index record */
 	rec->header_size = hdr_size->physical_size;
--- a/src/lib-index/mbox/mbox-index.c	Sun Sep 08 18:19:39 2002 +0300
+++ b/src/lib-index/mbox/mbox-index.c	Sun Sep 08 18:22:45 2002 +0300
@@ -256,7 +256,7 @@
 			       uoff_t *offset)
 {
 	const uoff_t *location;
-	unsigned int size;
+	size_t size;
 
 	location = index->lookup_field_raw(index, rec,
 					   FIELD_TYPE_LOCATION, &size);
--- a/src/lib-index/mbox/mbox-rewrite.c	Sun Sep 08 18:19:39 2002 +0300
+++ b/src/lib-index/mbox/mbox-rewrite.c	Sun Sep 08 18:22:45 2002 +0300
@@ -269,7 +269,8 @@
 	uoff_t offset;
 	const uoff_t *location;
 	const char *path;
-	unsigned int size, seq;
+	unsigned int seq;
+	size_t size;
 	int in_fd, out_fd, failed;
 
 	i_assert(index->lock_type == MAIL_LOCK_EXCLUSIVE);