summaryrefslogtreecommitdiffstats
path: root/lasso/xml/lib_name_identifier_mapping_response.c
diff options
context:
space:
mode:
authorFrederic Peters <fpeters@entrouvert.com>2004-11-09 09:08:47 +0000
committerFrederic Peters <fpeters@entrouvert.com>2004-11-09 09:08:47 +0000
commit07e1b7c04f5d623fd624640dffe9ce2a02030422 (patch)
tree9075164bfd0aa136f8a12a8134728420cf60174c /lasso/xml/lib_name_identifier_mapping_response.c
parent9f1fa16723b0a8f34433b010f4669618e128d0cc (diff)
downloadlasso-07e1b7c04f5d623fd624640dffe9ce2a02030422.tar.gz
lasso-07e1b7c04f5d623fd624640dffe9ce2a02030422.tar.xz
lasso-07e1b7c04f5d623fd624640dffe9ce2a02030422.zip
return value on init_from_xml; and minor tweaks to code style
Diffstat (limited to 'lasso/xml/lib_name_identifier_mapping_response.c')
-rw-r--r--lasso/xml/lib_name_identifier_mapping_response.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/lasso/xml/lib_name_identifier_mapping_response.c b/lasso/xml/lib_name_identifier_mapping_response.c
index cb3dbdc6..a5f9a68d 100644
--- a/lasso/xml/lib_name_identifier_mapping_response.c
+++ b/lasso/xml/lib_name_identifier_mapping_response.c
@@ -72,7 +72,7 @@ get_xmlNode(LassoNode *node)
return xmlnode;
}
-static void
+static int
init_from_xml(LassoNode *node, xmlNode *xmlnode)
{
LassoLibNameIdentifierMappingResponse *response;
@@ -80,7 +80,9 @@ init_from_xml(LassoNode *node, xmlNode *xmlnode)
response = LASSO_LIB_NAME_IDENTIFIER_MAPPING_RESPONSE(node);
- parent_class->init_from_xml(node, xmlnode);
+ if (parent_class->init_from_xml(node, xmlnode))
+ return -1;
+
t = xmlnode->children;
while (t) {
if (t->type != XML_ELEMENT_NODE) {
@@ -99,6 +101,7 @@ init_from_xml(LassoNode *node, xmlNode *xmlnode)
}
t = t->next;
}
+ return 0;
}
/*****************************************************************************/