From ef7e69f0f3fd13c783e93d49fe39918d21e52dad Mon Sep 17 00:00:00 2001 From: Not Zed Date: Fri, 8 Nov 2002 06:59:12 +0000 Subject: constify the content_type. 2002-11-07 Not Zed * camel-mime-part.c (camel_mime_part_set_content_type): constify the content_type. svn path=/trunk/; revision=18660 --- camel/ChangeLog | 5 +++++ camel/camel-mime-part.c | 2 +- camel/camel-mime-part.h | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/camel/ChangeLog b/camel/ChangeLog index dccb142d0e..702e7378c9 100644 --- a/camel/ChangeLog +++ b/camel/ChangeLog @@ -1,3 +1,8 @@ +2002-11-07 Not Zed + + * camel-mime-part.c (camel_mime_part_set_content_type): constify + the content_type. + 2002-11-07 Jeffrey Stedfast * camel-i18n.h: Added. diff --git a/camel/camel-mime-part.c b/camel/camel-mime-part.c index b8e259b3e2..eb65dead4e 100644 --- a/camel/camel-mime-part.c +++ b/camel/camel-mime-part.c @@ -531,7 +531,7 @@ camel_mime_part_get_content_languages (CamelMimePart *mime_part) /* **** Content-Type: */ void -camel_mime_part_set_content_type (CamelMimePart *mime_part, gchar *content_type) +camel_mime_part_set_content_type (CamelMimePart *mime_part, const gchar *content_type) { camel_medium_set_header (CAMEL_MEDIUM (mime_part), "Content-Type", content_type); diff --git a/camel/camel-mime-part.h b/camel/camel-mime-part.h index e745f57a6a..c925643f24 100644 --- a/camel/camel-mime-part.h +++ b/camel/camel-mime-part.h @@ -113,7 +113,7 @@ void camel_mime_part_set_content_languages (CamelMimePart *mime_part, GList * const GList *camel_mime_part_get_content_languages (CamelMimePart *mime_part); /* FIXME: what about content-type parameters? what about major/minor parts? */ -void camel_mime_part_set_content_type (CamelMimePart *mime_part, gchar *content_type); +void camel_mime_part_set_content_type (CamelMimePart *mime_part, const gchar *content_type); CamelContentType *camel_mime_part_get_content_type (CamelMimePart *mime_part); const gchar * camel_mime_part_encoding_to_string (CamelMimePartEncodingType encoding); -- cgit