changeset 5334:8d9234a26a3f HEAD

Make imap_bodystructure_write() parameter constant. Patch by Max Kellermann
author Timo Sirainen <tss@iki.fi>
date Thu, 15 Mar 2007 18:50:39 +0200
parents 55260092b094
children 79ea613496aa
files src/lib-imap/imap-bodystructure.c src/lib-imap/imap-bodystructure.h
diffstat 2 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/lib-imap/imap-bodystructure.c	Thu Mar 15 17:53:00 2007 +0200
+++ b/src/lib-imap/imap-bodystructure.c	Thu Mar 15 18:50:39 2007 +0200
@@ -263,7 +263,7 @@
 	t_pop();
 }
 
-static void part_write_body_multipart(struct message_part *part,
+static void part_write_body_multipart(const struct message_part *part,
 				      string_t *str, bool extended)
 {
 	struct message_part_body_data *data = part->context;
@@ -329,7 +329,7 @@
 	}
 }
 
-static void part_write_body(struct message_part *part,
+static void part_write_body(const struct message_part *part,
 			    string_t *str, bool extended)
 {
 	struct message_part_body_data *data = part->context;
@@ -486,7 +486,7 @@
 	return TRUE;
 }
 
-void imap_bodystructure_write(struct message_part *part,
+void imap_bodystructure_write(const struct message_part *part,
 			      string_t *dest, bool extended)
 {
 	i_assert(part->parent != NULL || part->next == NULL);
--- a/src/lib-imap/imap-bodystructure.h	Thu Mar 15 17:53:00 2007 +0200
+++ b/src/lib-imap/imap-bodystructure.h	Thu Mar 15 18:50:39 2007 +0200
@@ -12,7 +12,7 @@
    ("text" "plain" ("charset" "us-ascii") NIL NIL "7bit" n n NIL NIL NIL) */
 bool imap_bodystructure_is_plain_7bit(struct message_part *part);
 
-void imap_bodystructure_write(struct message_part *part,
+void imap_bodystructure_write(const struct message_part *part,
 			      string_t *dest, bool extended);
 
 /* Return BODY part from BODYSTRUCTURE */