Ignore:
Timestamp:
2010-04-16T22:30:00+02:00 (6 years ago)
Author:
juhosg
Message:

backfire: swconfig: Fix switch name. (backport of r20938)

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@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/backfire/package/swconfig/src/swlib.c

    r15508 r20947  
    582582                dev->id = nla_get_u32(tb[SWITCH_ATTR_ID]); 
    583583        if (tb[SWITCH_ATTR_NAME]) 
    584                 dev->name = strdup(nla_get_string(tb[SWITCH_ATTR_DEV_NAME])); 
     584                dev->name = strdup(nla_get_string(tb[SWITCH_ATTR_NAME])); 
    585585        if (tb[SWITCH_ATTR_PORTS]) 
    586586                dev->ports = nla_get_u32(tb[SWITCH_ATTR_PORTS]); 
Note: See TracChangeset for help on using the changeset viewer.