diff options
author | Dan Winship <danw@src.gnome.org> | 2000-04-20 04:30:53 +0800 |
---|---|---|
committer | Dan Winship <danw@src.gnome.org> | 2000-04-20 04:30:53 +0800 |
commit | 9417470b3b64c4067089bebacac705f33d50397d (patch) | |
tree | 9b17fc2a781047217543189fd8aa705eaed7ba1e /camel/camel-medium.c | |
parent | feb0ee231e1ba8e6b5e585a1cdb14a2da2ea9ef4 (diff) | |
download | gsoc2013-evolution-9417470b3b64c4067089bebacac705f33d50397d.tar gsoc2013-evolution-9417470b3b64c4067089bebacac705f33d50397d.tar.gz gsoc2013-evolution-9417470b3b64c4067089bebacac705f33d50397d.tar.bz2 gsoc2013-evolution-9417470b3b64c4067089bebacac705f33d50397d.tar.lz gsoc2013-evolution-9417470b3b64c4067089bebacac705f33d50397d.tar.xz gsoc2013-evolution-9417470b3b64c4067089bebacac705f33d50397d.tar.zst gsoc2013-evolution-9417470b3b64c4067089bebacac705f33d50397d.zip |
const poison. (Belatedly goes with my change of 2000-02-23.)
* camel-medium.[ch] (camel_medium_add_header): const poison.
(Belatedly goes with my change of 2000-02-23.)
(camel_medium_init): Use g_strcase_{hash,equal} on the header
array.
svn path=/trunk/; revision=2510
Diffstat (limited to 'camel/camel-medium.c')
-rw-r--r-- | camel/camel-medium.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/camel/camel-medium.c b/camel/camel-medium.c index 51451d6173..35a6c7e851 100644 --- a/camel/camel-medium.c +++ b/camel/camel-medium.c @@ -29,6 +29,7 @@ #include "gmime-content-field.h" #include "string-utils.h" #include "gmime-utils.h" +#include "hash-table-utils.h" #include "camel-simple-data-wrapper.h" @@ -37,8 +38,8 @@ static CamelDataWrapperClass *parent_class = NULL; /* Returns the class for a CamelMedium */ #define CM_CLASS(so) CAMEL_MEDIUM_CLASS (GTK_OBJECT (so)->klass) -static void add_header (CamelMedium *medium, gchar *header_name, - gchar *header_value); +static void add_header (CamelMedium *medium, const gchar *header_name, + const gchar *header_value); static void remove_header (CamelMedium *medium, const gchar *header_name); static const gchar *get_header (CamelMedium *medium, const gchar *header_name); @@ -74,7 +75,8 @@ camel_medium_init (gpointer object, gpointer klass) { CamelMedium *camel_medium = CAMEL_MEDIUM (object); - camel_medium->headers = g_hash_table_new (g_str_hash, g_str_equal); + camel_medium->headers = g_hash_table_new (g_strcase_hash, + g_strcase_equal); camel_medium->content = NULL; } @@ -130,7 +132,8 @@ finalize (GtkObject *object) static void -add_header (CamelMedium *medium, gchar *header_name, gchar *header_value) +add_header (CamelMedium *medium, const gchar *header_name, + const gchar *header_value) { gpointer old_name; gpointer old_value; |