aboutsummaryrefslogtreecommitdiffstats
path: root/camel
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@src.gnome.org>2001-09-08 03:43:34 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2001-09-08 03:43:34 +0800
commit385961fa0bce4d2e7c44685c22f661d86b725e0a (patch)
tree72f954363b715ee8c1e08e599e66aa5c64bf3ddb /camel
parent4b3b92a76305b826209f9960e9406017ccccd7e0 (diff)
downloadgsoc2013-evolution-385961fa0bce4d2e7c44685c22f661d86b725e0a.tar
gsoc2013-evolution-385961fa0bce4d2e7c44685c22f661d86b725e0a.tar.gz
gsoc2013-evolution-385961fa0bce4d2e7c44685c22f661d86b725e0a.tar.bz2
gsoc2013-evolution-385961fa0bce4d2e7c44685c22f661d86b725e0a.tar.lz
gsoc2013-evolution-385961fa0bce4d2e7c44685c22f661d86b725e0a.tar.xz
gsoc2013-evolution-385961fa0bce4d2e7c44685c22f661d86b725e0a.tar.zst
gsoc2013-evolution-385961fa0bce4d2e7c44685c22f661d86b725e0a.zip
constification
svn path=/trunk/; revision=12682
Diffstat (limited to 'camel')
-rw-r--r--camel/ChangeLog3
-rw-r--r--camel/camel-multipart.c6
-rw-r--r--camel/camel-multipart.h4
3 files changed, 8 insertions, 5 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog
index ec482228c7..397297d815 100644
--- a/camel/ChangeLog
+++ b/camel/ChangeLog
@@ -1,5 +1,8 @@
2001-09-07 Jeffrey Stedfast <fejj@ximian.com>
+ * camel-multipart.c (camel_multipart_set_boundary): Take a const
+ char * instead of a char *.
+
* camel-mime-part-utils.c
(camel_mime_part_construct_content_from_parser): Reuse the
original boundary instead of generating our own.
diff --git a/camel/camel-multipart.c b/camel/camel-multipart.c
index e997e054d1..836297a1c8 100644
--- a/camel/camel-multipart.c
+++ b/camel/camel-multipart.c
@@ -57,7 +57,7 @@ static CamelMimePart * get_part (CamelMultipart *multipart,
guint index);
static guint get_number (CamelMultipart *multipart);
static void set_boundary (CamelMultipart *multipart,
- gchar *boundary);
+ const char *boundary);
static const gchar * get_boundary (CamelMultipart *multipart);
static int write_to_stream (CamelDataWrapper *data_wrapper,
CamelStream *stream);
@@ -347,7 +347,7 @@ camel_multipart_get_number (CamelMultipart *multipart)
static void
-set_boundary (CamelMultipart *multipart, gchar *boundary)
+set_boundary (CamelMultipart *multipart, const char *boundary)
{
CamelDataWrapper *cdw = CAMEL_DATA_WRAPPER (multipart);
char *bgen, digest[16], bbuf[27], *p;
@@ -385,7 +385,7 @@ set_boundary (CamelMultipart *multipart, gchar *boundary)
* be used.
**/
void
-camel_multipart_set_boundary (CamelMultipart *multipart, gchar *boundary)
+camel_multipart_set_boundary (CamelMultipart *multipart, const char *boundary)
{
g_return_if_fail (CAMEL_IS_MULTIPART (multipart));
diff --git a/camel/camel-multipart.h b/camel/camel-multipart.h
index 7272d0bb74..a96a01f6ef 100644
--- a/camel/camel-multipart.h
+++ b/camel/camel-multipart.h
@@ -66,7 +66,7 @@ typedef struct {
CamelMimePart * (*remove_part_at) (CamelMultipart *multipart, guint index);
CamelMimePart * (*get_part) (CamelMultipart *multipart, guint index);
guint (*get_number) (CamelMultipart *multipart);
- void (*set_boundary) (CamelMultipart *multipart, gchar *boundary);
+ void (*set_boundary) (CamelMultipart *multipart, const char *boundary);
const gchar * (*get_boundary) (CamelMultipart *multipart);
} CamelMultipartClass;
@@ -91,7 +91,7 @@ CamelMimePart * camel_multipart_get_part (CamelMultipart *multipart,
guint index);
guint camel_multipart_get_number (CamelMultipart *multipart);
void camel_multipart_set_boundary (CamelMultipart *multipart,
- gchar *boundary);
+ const char *boundary);
const gchar * camel_multipart_get_boundary (CamelMultipart *multipart);
void camel_multipart_set_preface (CamelMultipart *multipart, const char *preface);