aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2002-11-08 14:59:12 +0800
committerMichael Zucci <zucchi@src.gnome.org>2002-11-08 14:59:12 +0800
commitef7e69f0f3fd13c783e93d49fe39918d21e52dad (patch)
tree2d9202e1043071d53b73f3420322864f1b1d3a0b
parent234540a383de150f0a79df466aa76dae4096d09c (diff)
downloadgsoc2013-evolution-ef7e69f0f3fd13c783e93d49fe39918d21e52dad.tar.gz
gsoc2013-evolution-ef7e69f0f3fd13c783e93d49fe39918d21e52dad.tar.zst
gsoc2013-evolution-ef7e69f0f3fd13c783e93d49fe39918d21e52dad.zip
constify the content_type.
2002-11-07 Not Zed <NotZed@Ximian.com> * camel-mime-part.c (camel_mime_part_set_content_type): constify the content_type. svn path=/trunk/; revision=18660
-rw-r--r--camel/ChangeLog5
-rw-r--r--camel/camel-mime-part.c2
-rw-r--r--camel/camel-mime-part.h2
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 <NotZed@Ximian.com>
+
+ * camel-mime-part.c (camel_mime_part_set_content_type): constify
+ the content_type.
+
2002-11-07 Jeffrey Stedfast <fejj@ximian.com>
* 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);