aboutsummaryrefslogtreecommitdiffstats
path: root/filter/rule-context.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/rule-context.c
parent187e0c0464e1db79762e2c80b0301eccb3312bad (diff)
downloadgsoc2013-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/rule-context.c')
-rw-r--r--filter/rule-context.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/filter/rule-context.c b/filter/rule-context.c
index 2334862677..c08bcf1c5e 100644
--- a/filter/rule-context.c
+++ b/filter/rule-context.c
@@ -317,7 +317,7 @@ load(RuleContext *rc, const char *system, const char *user)
}
root = xmlDocGetRootElement(systemdoc);
- if (root == NULL || strcmp(root->name, "filterdescription")) {
+ if (root == NULL || strcmp((char *)root->name, "filterdescription")) {
rule_context_set_error(rc, g_strdup_printf("Unable to load system rules '%s': Invalid format", system));
xmlFreeDoc(systemdoc);
return -1;
@@ -337,7 +337,7 @@ load(RuleContext *rc, const char *system, const char *user)
d(printf("loading parts ...\n"));
rule = set->children;
while (rule) {
- if (!strcmp(rule->name, "part")) {
+ if (!strcmp((char *)rule->name, "part")) {
FilterPart *part = FILTER_PART(g_object_new(part_map->type, NULL, NULL));
if (filter_part_xml_create(part, rule, rc) == 0) {
@@ -354,7 +354,7 @@ load(RuleContext *rc, const char *system, const char *user)
rule = set->children;
while (rule) {
d(printf("checking node: %s\n", rule->name));
- if (!strcmp(rule->name, "rule")) {
+ if (!strcmp((char *)rule->name, "rule")) {
FilterRule *part = FILTER_RULE(g_object_new(rule_map->type, NULL, NULL));
if (filter_rule_xml_decode(part, rule, rc) == 0) {
@@ -383,7 +383,7 @@ load(RuleContext *rc, const char *system, const char *user)
rule = set->children;
while (rule) {
d(printf("checking node: %s\n", rule->name));
- if (!strcmp(rule->name, "rule")) {
+ if (!strcmp((char *)rule->name, "rule")) {
FilterRule *part = FILTER_RULE(g_object_new(rule_map->type, NULL, NULL));
if (filter_rule_xml_decode(part, rule, rc) == 0) {
@@ -434,14 +434,14 @@ save(RuleContext *rc, const char *user)
struct _rule_set_map *map;
int ret;
- doc = xmlNewDoc("1.0");
+ doc = xmlNewDoc((const unsigned char *)"1.0");
/* FIXME: set character encoding to UTF-8? */
- root = xmlNewDocNode(doc, NULL, "filteroptions", NULL);
+ root = xmlNewDocNode(doc, NULL, (const unsigned char *)"filteroptions", NULL);
xmlDocSetRootElement(doc, root);
l = rc->rule_set_list;
while (l) {
map = l->data;
- rules = xmlNewDocNode(doc, NULL, map->name, NULL);
+ rules = xmlNewDocNode(doc, NULL, (unsigned char *)map->name, NULL);
xmlAddChild(root, rules);
rule = NULL;
while ((rule = map->next(rc, rule, NULL))) {
@@ -563,7 +563,7 @@ revert(RuleContext *rc, const char *user)
rule = set->children;
while (rule) {
d(printf("checking node: %s\n", rule->name));
- if (!strcmp(rule->name, "rule")) {
+ if (!strcmp((char *)rule->name, "rule")) {
FilterRule *part = FILTER_RULE(g_object_new(rule_map->type, NULL, NULL));
if (filter_rule_xml_decode(part, rule, rc) == 0) {