ofp-util: Separate output, error reporting in ofputil_port_from_string().
[sliver-openvswitch.git] / lib / bundle.c
index b68ebab..92ac1e1 100644 (file)
@@ -272,8 +272,7 @@ bundle_parse__(const char *s, char **save_ptr,
             break;
         }
 
-        slave_port = ofputil_port_from_string(slave);
-        if (!slave_port) {
+        if (!ofputil_port_from_string(slave, &slave_port)) {
             ovs_fatal(0, "%s: bad port number", slave);
         }
         ofpbuf_put(ofpacts, &slave_port, sizeof slave_port);