swconfig: Fix switch name.

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+openwrt@gmail.com>


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20938 3c298f89-4303-0410-b956-a3cf2f4a3e73
master
Gabor Juhos 2010-04-16 19:32:32 +00:00
parent 0fb7efb0c4
commit 1a53666807
1 changed files with 1 additions and 1 deletions

View File

@ -581,7 +581,7 @@ add_switch(struct nl_msg *msg, void *arg)
if (tb[SWITCH_ATTR_ID]) if (tb[SWITCH_ATTR_ID])
dev->id = nla_get_u32(tb[SWITCH_ATTR_ID]); dev->id = nla_get_u32(tb[SWITCH_ATTR_ID]);
if (tb[SWITCH_ATTR_NAME]) 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]) if (tb[SWITCH_ATTR_PORTS])
dev->ports = nla_get_u32(tb[SWITCH_ATTR_PORTS]); dev->ports = nla_get_u32(tb[SWITCH_ATTR_PORTS]);
if (tb[SWITCH_ATTR_VLANS]) if (tb[SWITCH_ATTR_VLANS])