Fix compiler warnings in filter.

This commit is contained in:
Matthew Barnes
2009-05-25 23:21:22 -04:00
parent a361cff404
commit 16c8fefe96
4 changed files with 3 additions and 5 deletions

View File

@ -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__ */

View File

@ -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";

View File

@ -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";

View File

@ -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) },