git.annexia.org
/
hivex.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
7e7dbae
)
hivexml: Add correct casts to xmlTextWriter* function call params.
author
Richard W.M. Jones
<rjones@redhat.com>
Wed, 7 Sep 2011 11:30:27 +0000
(12:30 +0100)
committer
Richard W.M. Jones
<rjones@redhat.com>
Wed, 7 Sep 2011 11:31:35 +0000
(12:31 +0100)
This fixes commit
7ab64739391d60a52755250e76b0f4a03878a7e8
.
xml/hivexml.c
patch
|
blob
|
history
diff --git
a/xml/hivexml.c
b/xml/hivexml.c
index
b22837f
..
cf11676
100644
(file)
--- 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"));
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;
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);
{
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;
}
end_value (writer);
return 0;
}