summaryrefslogtreecommitdiffstats
path: root/lasso/xml/lib_status_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_status_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_status_response.c')
-rw-r--r--lasso/xml/lib_status_response.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/lasso/xml/lib_status_response.c b/lasso/xml/lib_status_response.c
index 5784d861..5a2a59d0 100644
--- a/lasso/xml/lib_status_response.c
+++ b/lasso/xml/lib_status_response.c
@@ -82,13 +82,14 @@ get_xmlNode(LassoNode *node)
return xmlnode;
}
-static void
+static int
init_from_xml(LassoNode *node, xmlNode *xmlnode)
{
LassoLibStatusResponse *response = LASSO_LIB_STATUS_RESPONSE(node);
xmlNode *t;
- 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 && strcmp(t->name, "ProviderID") == 0)
@@ -99,6 +100,7 @@ init_from_xml(LassoNode *node, xmlNode *xmlnode)
response->RelayState = xmlNodeGetContent(t);
t = t->next;
}
+ return 0;
}
static gchar*