aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2010-04-16 19:32:32 +0000
committerGabor Juhos <juhosg@openwrt.org>2010-04-16 19:32:32 +0000
commite1079c515a1d2ff08d829e11de6827741d2154f7 (patch)
tree4e80e33760e075bff3f8b15c65d1850bb54d2aed
parent7b127c754b5f719369357b69665d401b7a451212 (diff)
downloadupstream-e1079c515a1d2ff08d829e11de6827741d2154f7.tar.gz
upstream-e1079c515a1d2ff08d829e11de6827741d2154f7.tar.bz2
upstream-e1079c515a1d2ff08d829e11de6827741d2154f7.zip
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> SVN-Revision: 20938
-rw-r--r--package/swconfig/src/swlib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/swconfig/src/swlib.c b/package/swconfig/src/swlib.c
index 04b3bef49d..8a9fd7a29c 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])