[dovecot-cvs] dovecot/src/lib-imap imap-bodystructure.c,1.28,1.29

cras at procontrol.fi cras at procontrol.fi
Mon Jan 6 19:51:39 EET 2003


Update of /home/cvs/dovecot/src/lib-imap
In directory danu:/tmp/cvs-serv22593

Modified Files:
	imap-bodystructure.c 
Log Message:
minor cleanup



Index: imap-bodystructure.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib-imap/imap-bodystructure.c,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -d -r1.28 -r1.29
--- imap-bodystructure.c	5 Jan 2003 13:09:52 -0000	1.28
+++ imap-bodystructure.c	6 Jan 2003 17:51:37 -0000	1.29
@@ -450,19 +450,10 @@
 	}
 }
 
-static const char *part_get_bodystructure(struct message_part *part,
-					  int extended)
-{
-	string_t *str;
-
-	str = t_str_new(2048);
-	part_write_bodystructure(part, str, extended);
-	return str_c(str);
-}
-
 const char *imap_part_get_bodystructure(pool_t pool, struct message_part **part,
 					struct istream *input, int extended)
 {
+	string_t *str;
 	uoff_t start_offset;
 
 	if (*part == NULL)
@@ -472,7 +463,9 @@
 		part_parse_headers(*part, input, start_offset, pool);
 	}
 
-	return part_get_bodystructure(*part, extended);
+	str = t_str_new(2048);
+	part_write_bodystructure(*part, str, extended);
+	return str_c(str);
 }
 
 static int imap_write_list(const struct imap_arg *args, string_t *str)




More information about the dovecot-cvs mailing list