From 16c8fefe966367fa5d9747d35895f8aa6e080657 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Mon, 25 May 2009 23:21:22 -0400 Subject: Fix compiler warnings in filter. --- filter/filter-file.c | 2 +- filter/filter-input.c | 2 +- filter/rule-editor.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'filter') diff --git a/filter/filter-file.c b/filter/filter-file.c index 4126c4b937..e43a02b2ef 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 be88a06835..693fea0bab 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 dc4c65a24c..066689a598 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) }, -- cgit v1.2.3