This patch fixes a small typo in swconfig's client side that caused it to print the interface name instead of the switch's device name on the help page.
Signed-off-by: Jonas Gorski <jonas.gorski+open...@gmail.com> --- package/swconfig/src/swlib.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/package/swconfig/src/swlib.c b/package/swconfig/src/swlib.c index 86b82de..59456a3 100644 --- a/package/swconfig/src/swlib.c +++ b/package/swconfig/src/swlib.c @@ -581,7 +581,7 @@ add_switch(struct nl_msg *msg, void *arg) if (tb[SWITCH_ATTR_ID]) dev->id = nla_get_u32(tb[SWITCH_ATTR_ID]); if (tb[SWITCH_ATTR_NAME]) - dev->name = strdup(nla_get_string(tb[SWITCH_ATTR_DEV_NAME])); + dev->name = strdup(nla_get_string(tb[SWITCH_ATTR_NAME])); if (tb[SWITCH_ATTR_PORTS]) dev->ports = nla_get_u32(tb[SWITCH_ATTR_PORTS]); if (tb[SWITCH_ATTR_VLANS]) -- 1.7.0 _______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel