diff options
Diffstat (limited to 'networking/libiproute/rtm_map.c')
-rw-r--r-- | networking/libiproute/rtm_map.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/networking/libiproute/rtm_map.c b/networking/libiproute/rtm_map.c index 3bab53baf..c763da049 100644 --- a/networking/libiproute/rtm_map.c +++ b/networking/libiproute/rtm_map.c | |||
@@ -12,7 +12,7 @@ | |||
12 | #include "rt_names.h" | 12 | #include "rt_names.h" |
13 | #include "utils.h" | 13 | #include "utils.h" |
14 | 14 | ||
15 | const char* FAST_FUNC rtnl_rtntype_n2a(int id, char *buf) | 15 | const char* FAST_FUNC rtnl_rtntype_n2a(int id) |
16 | { | 16 | { |
17 | switch (id) { | 17 | switch (id) { |
18 | case RTN_UNSPEC: | 18 | case RTN_UNSPEC: |
@@ -40,9 +40,7 @@ const char* FAST_FUNC rtnl_rtntype_n2a(int id, char *buf) | |||
40 | case RTN_XRESOLVE: | 40 | case RTN_XRESOLVE: |
41 | return "xresolve"; | 41 | return "xresolve"; |
42 | default: | 42 | default: |
43 | /* buf is SPRINT_BSIZE big */ | 43 | return itoa(id); |
44 | sprintf(buf, "%d", id); | ||
45 | return buf; | ||
46 | } | 44 | } |
47 | } | 45 | } |
48 | 46 | ||