summaryrefslogtreecommitdiff
path: root/src/raptor_serialize_rdfxmla.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/raptor_serialize_rdfxmla.c')
-rw-r--r--src/raptor_serialize_rdfxmla.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/raptor_serialize_rdfxmla.c b/src/raptor_serialize_rdfxmla.c
index c9fe232e..23419471 100644
--- a/src/raptor_serialize_rdfxmla.c
+++ b/src/raptor_serialize_rdfxmla.c
@@ -482,7 +482,6 @@ raptor_rdfxmla_emit_subject_properties(raptor_serializer* serializer,
{
raptor_rdfxmla_context* context = (raptor_rdfxmla_context*)serializer->context;
int rv = 0;
- int i;
raptor_avltree_iterator* iter = NULL;
raptor_term* subject_term = subject->node->term;
@@ -529,9 +528,9 @@ raptor_rdfxmla_emit_subject_properties(raptor_serializer* serializer,
}
- for(i = 0, iter = raptor_new_avltree_iterator(subject->properties, NULL, NULL, 1);
+ for(iter = raptor_new_avltree_iterator(subject->properties, NULL, NULL, 1);
iter && !rv;
- i++, (rv = raptor_avltree_iterator_next(iter))) {
+ (rv = raptor_avltree_iterator_next(iter))) {
raptor_uri *base_uri = NULL;
raptor_qname *qname;
raptor_xml_element *element;
@@ -1353,10 +1352,9 @@ raptor_rdfxmla_serialize_statement(raptor_serializer* serializer,
if(context->is_xmp && predicate->ref_count > 1) {
raptor_avltree_iterator* iter = NULL;
- int i;
- for(i = 0, (iter = raptor_new_avltree_iterator(subject->properties, NULL, NULL, 1));
+ for((iter = raptor_new_avltree_iterator(subject->properties, NULL, NULL, 1));
iter && !rv;
- i++, (rv = raptor_avltree_iterator_next(iter))) {
+ (rv = raptor_avltree_iterator_next(iter))) {
raptor_abbrev_node** nodes;
raptor_abbrev_node* node;