diff options
author | Andreas Steffen <andreas.steffen@strongswan.org> | 2013-04-04 17:12:00 +0200 |
---|---|---|
committer | Andreas Steffen <andreas.steffen@strongswan.org> | 2013-04-04 17:12:07 +0200 |
commit | 2a4915e87a41299d9a14ea7288196a7aa3e898f5 (patch) | |
tree | d9bc3103dd611b9e9074d6d7b122a094d6e63958 /src/libcharon/plugins/tnccs_11/messages/tnccs_msg.c | |
parent | 9c84bbcbc00da18ae7bb808b0c577e528f64d1a4 (diff) | |
download | strongswan-2a4915e87a41299d9a14ea7288196a7aa3e898f5.tar.bz2 strongswan-2a4915e87a41299d9a14ea7288196a7aa3e898f5.tar.xz |
cleaned up XML code in tnccs-11 plugin
Diffstat (limited to 'src/libcharon/plugins/tnccs_11/messages/tnccs_msg.c')
-rw-r--r-- | src/libcharon/plugins/tnccs_11/messages/tnccs_msg.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libcharon/plugins/tnccs_11/messages/tnccs_msg.c b/src/libcharon/plugins/tnccs_11/messages/tnccs_msg.c index 79c663905..fa5ce8239 100644 --- a/src/libcharon/plugins/tnccs_11/messages/tnccs_msg.c +++ b/src/libcharon/plugins/tnccs_11/messages/tnccs_msg.c @@ -57,15 +57,15 @@ tnccs_msg_t* tnccs_msg_create_from_node(xmlNodePtr node, linked_list_t *errors) while (cur) { - if (streq((char*)cur->name, "Type") && cur->ns == ns) + if (streq(cur->name, "Type") && cur->ns == ns) { xmlChar *content = xmlNodeGetContent(cur); - type = strtol((char*)content, NULL, 16); + type = strtol(content, NULL, 16); xmlFree(content); found = TRUE; } - else if (streq((char*)cur->name, "XML") && cur->ns == ns) + else if (streq(cur->name, "XML") && cur->ns == ns) { xml_msg_node = cur->xmlChildrenNode; } |