frontend_net: simplify, use mp::xml::get_route
authorAdam Dickmeiss <adam@indexdata.dk>
Thu, 18 Oct 2012 08:56:10 +0000 (10:56 +0200)
committerAdam Dickmeiss <adam@indexdata.dk>
Thu, 18 Oct 2012 08:56:10 +0000 (10:56 +0200)
src/filter_frontend_net.cpp

index 4743c27..396f6db 100644 (file)
@@ -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"))
         {