diff options
author | Matthew Barnes <mbarnes@src.gnome.org> | 2007-06-03 10:00:45 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@src.gnome.org> | 2007-06-03 10:00:45 +0800 |
commit | 677df14504c5ad80efbb417c6ceea8d8494e583d (patch) | |
tree | afc5cbc68e6029b5bea0a79c4e42a3f621ba929e /filter/filter-part.c | |
parent | 187e0c0464e1db79762e2c80b0301eccb3312bad (diff) | |
download | gsoc2013-evolution-677df14504c5ad80efbb417c6ceea8d8494e583d.tar.gz gsoc2013-evolution-677df14504c5ad80efbb417c6ceea8d8494e583d.tar.zst gsoc2013-evolution-677df14504c5ad80efbb417c6ceea8d8494e583d.zip |
Fix compilation warnings in filter directory (#439118).
svn path=/trunk/; revision=33624
Diffstat (limited to 'filter/filter-part.c')
-rw-r--r-- | filter/filter-part.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/filter/filter-part.c b/filter/filter-part.c index 3f1b19b542..6756674f0b 100644 --- a/filter/filter-part.c +++ b/filter/filter-part.c @@ -170,15 +170,15 @@ filter_part_xml_create (FilterPart *ff, xmlNodePtr node, RuleContext *rc) char *type, *str; FilterElement *el; - str = xmlGetProp (node, "name"); + str = (char *)xmlGetProp (node, (const unsigned char *)"name"); ff->name = g_strdup (str); if (str) xmlFree (str); n = node->children; while (n) { - if (!strcmp (n->name, "input")) { - type = xmlGetProp (n, "type"); + if (!strcmp ((char *)n->name, "input")) { + type = (char *)xmlGetProp (n, (const unsigned char *)"type"); d(printf ("creating new element type input '%s'\n", type)); if (type != NULL && (el = rule_context_new_element(rc, type)) != NULL) { @@ -189,16 +189,16 @@ filter_part_xml_create (FilterPart *ff, xmlNodePtr node, RuleContext *rc) } else { g_warning ("Invalid xml format, missing/unknown input type"); } - } else if (!strcmp (n->name, "title")) { + } else if (!strcmp ((char *)n->name, "title")) { if (!ff->title) { - str = xmlNodeGetContent (n); + str = (char *)xmlNodeGetContent (n); ff->title = g_strdup (str); if (str) xmlFree (str); } - } else if (!strcmp (n->name, "code")) { + } else if (!strcmp ((char *)n->name, "code")) { if (!ff->code) { - str = xmlNodeGetContent (n); + str = (char *)xmlNodeGetContent (n); ff->code = g_strdup (str); if (str) xmlFree (str); @@ -221,8 +221,8 @@ filter_part_xml_encode (FilterPart *fp) g_return_val_if_fail (fp != NULL, NULL); - part = xmlNewNode (NULL, "part"); - xmlSetProp (part, "name", fp->name); + part = xmlNewNode (NULL, (const unsigned char *)"part"); + xmlSetProp (part, (const unsigned char *)"name", (unsigned char *)fp->name); l = fp->elements; while (l) { fe = l->data; @@ -247,8 +247,8 @@ filter_part_xml_decode (FilterPart *fp, xmlNodePtr node) n = node->children; while (n) { - if (!strcmp (n->name, "value")) { - name = xmlGetProp (n, "name"); + if (!strcmp ((char *)n->name, "value")) { + name = (char *)xmlGetProp (n, (const unsigned char *)"name"); d(printf ("finding element part %p %s = %p\n", name, name, fe)); fe = filter_part_find_element (fp, name); d(printf ("finding element part %p %s = %p\n", name, name, fe)); |