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 3bab53b..c763da0 100644 --- a/networking/libiproute/rtm_map.c +++ b/networking/libiproute/rtm_map.c @@ -12,7 +12,7 @@ #include "rt_names.h" #include "utils.h" -const char* FAST_FUNC rtnl_rtntype_n2a(int id, char *buf) +const char* FAST_FUNC rtnl_rtntype_n2a(int id) { switch (id) { case RTN_UNSPEC: @@ -40,9 +40,7 @@ const char* FAST_FUNC rtnl_rtntype_n2a(int id, char *buf) case RTN_XRESOLVE: return "xresolve"; default: - /* buf is SPRINT_BSIZE big */ - sprintf(buf, "%d", id); - return buf; + return itoa(id); } } |