summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2011-09-07 12:30:27 +0100
committerRichard W.M. Jones <rjones@redhat.com>2011-09-07 12:31:35 +0100
commitdc3a5c4ad0b970ddcfebb753de3e243b5d6339bc (patch)
tree0f2ba17834ff6b190746acaa0836a8d5b0b1240e
parent7e7dbae4f9c0e98f626105a26917581e871691d5 (diff)
downloadhivex-dc3a5c4ad0b970ddcfebb753de3e243b5d6339bc.tar.gz
hivex-dc3a5c4ad0b970ddcfebb753de3e243b5d6339bc.tar.xz
hivex-dc3a5c4ad0b970ddcfebb753de3e243b5d6339bc.zip
hivexml: Add correct casts to xmlTextWriter* function call params.
This fixes commit 7ab64739391d60a52755250e76b0f4a03878a7e8.
-rw-r--r--xml/hivexml.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/xml/hivexml.c b/xml/hivexml.c
index b22837f..cf11676 100644
--- a/xml/hivexml.c
+++ b/xml/hivexml.c
@@ -287,7 +287,7 @@ value_string (hive_h *h, void *writer_v, hive_node_h node, hive_value_h value,
start_value (writer, key, type, NULL);
XML_CHECK (xmlTextWriterStartAttribute, (writer, BAD_CAST "value"));
- XML_CHECK (xmlTextWriterWriteString, (writer, str));
+ XML_CHECK (xmlTextWriterWriteString, (writer, BAD_CAST str));
XML_CHECK (xmlTextWriterEndAttribute, (writer));
end_value (writer);
return 0;
@@ -367,7 +367,7 @@ value_qword (hive_h *h, void *writer_v, hive_node_h node, hive_value_h value,
{
xmlTextWriterPtr writer = (xmlTextWriterPtr) writer_v;
start_value (writer, key, "int64", NULL);
- XML_CHECK (xmlTextWriterWriteFormatAttribute, (writer, "value", "%" PRIi64, v));
+ XML_CHECK (xmlTextWriterWriteFormatAttribute, (writer, BAD_CAST "value", "%" PRIi64, v));
end_value (writer);
return 0;
}