aboutsummaryrefslogtreecommitdiffstats
path: root/filter/filter-datespec.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@src.gnome.org>2007-06-03 10:00:45 +0800
committerMatthew Barnes <mbarnes@src.gnome.org>2007-06-03 10:00:45 +0800
commit677df14504c5ad80efbb417c6ceea8d8494e583d (patch)
treeafc5cbc68e6029b5bea0a79c4e42a3f621ba929e /filter/filter-datespec.c
parent187e0c0464e1db79762e2c80b0301eccb3312bad (diff)
downloadgsoc2013-evolution-677df14504c5ad80efbb417c6ceea8d8494e583d.tar
gsoc2013-evolution-677df14504c5ad80efbb417c6ceea8d8494e583d.tar.gz
gsoc2013-evolution-677df14504c5ad80efbb417c6ceea8d8494e583d.tar.bz2
gsoc2013-evolution-677df14504c5ad80efbb417c6ceea8d8494e583d.tar.lz
gsoc2013-evolution-677df14504c5ad80efbb417c6ceea8d8494e583d.tar.xz
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-datespec.c')
-rw-r--r--filter/filter-datespec.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/filter/filter-datespec.c b/filter/filter-datespec.c
index f8bceb3e6a..53a03c8387 100644
--- a/filter/filter-datespec.c
+++ b/filter/filter-datespec.c
@@ -220,15 +220,15 @@ xml_encode (FilterElement *fe)
d(printf ("Encoding datespec as xml\n"));
- value = xmlNewNode (NULL, "value");
- xmlSetProp (value, "name", fe->name);
- xmlSetProp (value, "type", "datespec");
+ value = xmlNewNode (NULL, (const unsigned char *)"value");
+ xmlSetProp (value, (const unsigned char *)"name", (unsigned char *)fe->name);
+ xmlSetProp (value, (const unsigned char *)"type", (const unsigned char *)"datespec");
- work = xmlNewChild (value, NULL, "datespec", NULL);
+ work = xmlNewChild (value, NULL, (const unsigned char *)"datespec", NULL);
sprintf (str, "%d", fds->type);
- xmlSetProp (work, "type", str);
+ xmlSetProp (work, (const unsigned char *)"type", (unsigned char *)str);
sprintf (str, "%d", (int)fds->value);
- xmlSetProp (work, "value", str);
+ xmlSetProp (work, (const unsigned char *)"value", (unsigned char *)str);
return value;
}
@@ -238,21 +238,21 @@ xml_decode (FilterElement *fe, xmlNodePtr node)
{
FilterDatespec *fds = (FilterDatespec *)fe;
xmlNodePtr n;
- char *val;
+ xmlChar *val;
d(printf ("Decoding datespec from xml %p\n", fe));
xmlFree (fe->name);
- fe->name = xmlGetProp (node, "name");
+ fe->name = (char *)xmlGetProp (node, (const unsigned char *)"name");
n = node->children;
while (n) {
- if (!strcmp (n->name, "datespec")) {
- val = xmlGetProp (n, "type");
- fds->type = atoi (val);
+ if (!strcmp ((char *)n->name, "datespec")) {
+ val = xmlGetProp (n, (const unsigned char *)"type");
+ fds->type = atoi ((char *)val);
xmlFree (val);
- val = xmlGetProp (n, "value");
- fds->value = atoi (val);
+ val = xmlGetProp (n, (const unsigned char *)"value");
+ fds->value = atoi ((char *)val);
xmlFree (val);
break;
}