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-int.c | |
parent | 187e0c0464e1db79762e2c80b0301eccb3312bad (diff) | |
download | gsoc2013-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-int.c')
-rw-r--r-- | filter/filter-int.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/filter/filter-int.c b/filter/filter-int.c index eb14eaa695..873e6a4a33 100644 --- a/filter/filter-int.c +++ b/filter/filter-int.c @@ -184,12 +184,12 @@ xml_encode (FilterElement *fe) d(printf("Encoding %s as xml\n", type)); - value = xmlNewNode (NULL, "value"); - xmlSetProp (value, "name", fe->name); - xmlSetProp (value, "type", type); + value = xmlNewNode (NULL, (const unsigned char *)"value"); + xmlSetProp (value, (const unsigned char *)"name", (unsigned char *)fe->name); + xmlSetProp (value, (const unsigned char *)"type", (unsigned char *)type); sprintf(intval, "%d", fs->val); - xmlSetProp (value, type, intval); + xmlSetProp (value, (unsigned char *)type, (unsigned char *)intval); return value; } @@ -203,18 +203,18 @@ xml_decode (FilterElement *fe, xmlNodePtr node) d(printf("Decoding integer from xml %p\n", fe)); - name = xmlGetProp (node, "name"); + name = (char *)xmlGetProp (node, (const unsigned char *)"name"); d(printf ("Name = %s\n", name)); xmlFree (fe->name); fe->name = name; - type = xmlGetProp(node, "type"); + type = (char *)xmlGetProp(node, (const unsigned char *)"type"); d(printf ("Type = %s\n", type)); g_free(fs->type); fs->type = g_strdup(type); xmlFree(type); - intval = xmlGetProp (node, fs->type ? fs->type : "integer"); + intval = (char *)xmlGetProp (node, (unsigned char *)(fs->type ? fs->type : "integer")); if (intval) { d(printf ("Value = %s\n", intval)); fs->val = atoi (intval); |