diff options
author | Phil Sutter <phil@nwl.cc> | 2016-07-23 13:28:10 +0200 |
---|---|---|
committer | Stephen Hemminger <shemming@brocade.com> | 2016-07-25 08:10:43 -0700 |
commit | 709320061154c2d381aa91fc6a135eea96b32672 (patch) | |
tree | 73e57b65c4bf1a027ddbd95f6f88e80b01df4cae /tc/m_vlan.c | |
parent | 69f5aff63c770bd95607b33d5ee8ee183dc13a64 (diff) |
tc: util: No need for action_n2a() to be reentrant
This allows to remove some buffers here and there. While at it, make it
return a const value.
Signed-off-by: Phil Sutter <phil@nwl.cc>
Diffstat (limited to 'tc/m_vlan.c')
-rw-r--r-- | tc/m_vlan.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tc/m_vlan.c b/tc/m_vlan.c index 82311dd6..ac63d9ed 100644 --- a/tc/m_vlan.c +++ b/tc/m_vlan.c @@ -182,7 +182,7 @@ static int print_vlan(struct action_util *au, FILE *f, struct rtattr *arg) } break; } - fprintf(f, " %s", action_n2a(parm->action, b1, sizeof(b1))); + fprintf(f, " %s", action_n2a(parm->action)); fprintf(f, "\n\t index %d ref %d bind %d", parm->index, parm->refcnt, parm->bindcnt); |