diff options
author | Ron Yorston <rmy@pobox.com> | 2015-10-13 14:45:51 +0100 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2015-10-13 14:45:51 +0100 |
commit | 8e509f11bceeec419abc718300bef7422d1fee4c (patch) | |
tree | fdfbc752ad94102e3613a5d7254f14a93eaf7f56 /networking/libiproute/rtm_map.c | |
parent | 420f5edfe7676fe6e7cddbbf15c04649d096e422 (diff) | |
parent | 4d0c1ea4784c9844f8468d97ca5c26d3c70f9921 (diff) | |
download | busybox-w32-8e509f11bceeec419abc718300bef7422d1fee4c.tar.gz busybox-w32-8e509f11bceeec419abc718300bef7422d1fee4c.tar.bz2 busybox-w32-8e509f11bceeec419abc718300bef7422d1fee4c.zip |
Merge branch 'busybox' into merge
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 | ||