diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2010-04-16 19:32:32 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2010-04-16 19:32:32 +0000 |
commit | 1a53666807a5192e3177651b7b5ef54d92505c4f (patch) | |
tree | 2fdecb5b4bf5fc007728c2c512d4da9a370a3398 /package/swconfig | |
parent | 0fb7efb0c404478f99f00b81f8152b8c23016971 (diff) | |
download | master-187ad058-1a53666807a5192e3177651b7b5ef54d92505c4f.tar.gz master-187ad058-1a53666807a5192e3177651b7b5ef54d92505c4f.tar.bz2 master-187ad058-1a53666807a5192e3177651b7b5ef54d92505c4f.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>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20938 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/swconfig')
-rw-r--r-- | 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 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]) |