[evolution: 4/11] Fix compiler warnings in filter.
- From: Matthew Barnes <mbarnes src gnome org>
- To: svn-commits-list gnome org
- Subject: [evolution: 4/11] Fix compiler warnings in filter.
- Date: Tue, 26 May 2009 17:00:05 -0400 (EDT)
commit 16c8fefe966367fa5d9747d35895f8aa6e080657
Author: Matthew Barnes <mbarnes redhat com>
Date: Mon May 25 23:21:22 2009 -0400
Fix compiler warnings in filter.
---
e-util/e-xml-utils.h | 2 --
filter/filter-file.c | 2 +-
filter/filter-input.c | 2 +-
filter/rule-editor.c | 2 +-
4 files changed, 3 insertions(+), 5 deletions(-)
diff --git a/e-util/e-xml-utils.h b/e-util/e-xml-utils.h
index 59d11c6..ef8ae8a 100644
--- a/e-util/e-xml-utils.h
+++ b/e-util/e-xml-utils.h
@@ -92,8 +92,6 @@ void e_xml_set_string_prop_by_name (xmlNode *parent,
gchar *e_xml_get_translated_string_prop_by_name (const xmlNode *parent,
const xmlChar *prop_name);
-int e_xml_save_file (const char *filename, xmlDocPtr doc);
-
G_END_DECLS
#endif /* __E_XML_UTILS__ */
diff --git a/filter/filter-file.c b/filter/filter-file.c
index 4126c4b..e43a02b 100644
--- a/filter/filter-file.c
+++ b/filter/filter-file.c
@@ -208,7 +208,7 @@ xml_encode (FilterElement *fe)
{
FilterFile *file = (FilterFile *) fe;
xmlNodePtr cur, value;
- char *type;
+ const gchar *type;
type = file->type ? file->type : "file";
diff --git a/filter/filter-input.c b/filter/filter-input.c
index be88a06..693fea0 100644
--- a/filter/filter-input.c
+++ b/filter/filter-input.c
@@ -237,7 +237,7 @@ xml_encode (FilterElement *fe)
xmlNodePtr value;
GList *l;
FilterInput *fi = (FilterInput *)fe;
- char *type;
+ const gchar *type;
type = fi->type ? fi->type : "string";
diff --git a/filter/rule-editor.c b/filter/rule-editor.c
index dc4c65a..066689a 100644
--- a/filter/rule-editor.c
+++ b/filter/rule-editor.c
@@ -639,7 +639,7 @@ rule_bottom (GtkWidget *widget, RuleEditor *re)
}
static struct {
- char *name;
+ const gchar *name;
GCallback func;
} edit_buttons[] = {
{ "rule_add", G_CALLBACK (rule_add) },
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]