projects
/
metaproxy-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bed9f4c
)
frontend_net: simplify, use mp::xml::get_route
author
Adam Dickmeiss
<adam@indexdata.dk>
Thu, 18 Oct 2012 08:56:10 +0000
(10:56 +0200)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Thu, 18 Oct 2012 08:56:10 +0000
(10:56 +0200)
src/filter_frontend_net.cpp
patch
|
blob
|
history
diff --git
a/src/filter_frontend_net.cpp
b/src/filter_frontend_net.cpp
index
4743c27
..
396f6db
100644
(file)
--- a/
src/filter_frontend_net.cpp
+++ b/
src/filter_frontend_net.cpp
@@
-625,15
+625,9
@@
void yf::FrontendNet::configure(const xmlNode * ptr, bool test_only,
if (!strcmp((const char *) ptr->name, "port"))
{
Port port;
- const struct _xmlAttr *attr;
- for (attr = ptr->properties; attr; attr = attr->next)
- {
- if (!strcmp((const char *) attr->name, "route"))
- port.route = mp::xml::get_text(attr);
- }
+ port.route = mp::xml::get_route(ptr);
port.port = mp::xml::get_text(ptr);
ports.push_back(port);
-
}
else if (!strcmp((const char *) ptr->name, "threads"))
{