summaryrefslogtreecommitdiff
path: root/tc/m_csum.c
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2016-07-23 13:28:10 +0200
committerStephen Hemminger <shemming@brocade.com>2016-07-25 08:10:43 -0700
commit709320061154c2d381aa91fc6a135eea96b32672 (patch)
tree73e57b65c4bf1a027ddbd95f6f88e80b01df4cae /tc/m_csum.c
parent69f5aff63c770bd95607b33d5ee8ee183dc13a64 (diff)
downloadiproute2-709320061154c2d381aa91fc6a135eea96b32672.tar.gz
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_csum.c')
-rw-r--r--tc/m_csum.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/tc/m_csum.c b/tc/m_csum.c
index db7eed3a..a6e4c1eb 100644
--- a/tc/m_csum.c
+++ b/tc/m_csum.c
@@ -161,8 +161,6 @@ print_csum(struct action_util *au, FILE *f, struct rtattr *arg)
char *uflag_5 = "";
char *uflag_6 = "";
- SPRINT_BUF(action_buf);
-
int uflag_count = 0;
if (arg == NULL)
@@ -200,7 +198,7 @@ print_csum(struct action_util *au, FILE *f, struct rtattr *arg)
fprintf(f, "csum (%s%s%s%s%s%s) action %s\n",
uflag_1, uflag_2, uflag_3,
uflag_4, uflag_5, uflag_6,
- action_n2a(sel->action, action_buf, sizeof(action_buf)));
+ action_n2a(sel->action));
fprintf(f, "\tindex %d ref %d bind %d", sel->index, sel->refcnt, sel->bindcnt);
if (show_stats) {