aboutsummaryrefslogtreecommitdiff
path: root/networking/libiproute/ll_map.c
diff options
context:
space:
mode:
Diffstat (limited to 'networking/libiproute/ll_map.c')
-rw-r--r--networking/libiproute/ll_map.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/networking/libiproute/ll_map.c b/networking/libiproute/ll_map.c
index feb6e8d22..e2b85fc7b 100644
--- a/networking/libiproute/ll_map.c
+++ b/networking/libiproute/ll_map.c
@@ -86,7 +86,8 @@ int FAST_FUNC ll_remember_index(const struct sockaddr_nl *who UNUSED_PARAM,
86 return 0; 86 return 0;
87} 87}
88 88
89const char FAST_FUNC *ll_idx_n2a(int idx, char *buf) 89static
90const char FAST_FUNC *ll_idx_n2a(int idx/*, char *buf*/)
90{ 91{
91 struct idxmap *im; 92 struct idxmap *im;
92 93
@@ -95,15 +96,15 @@ const char FAST_FUNC *ll_idx_n2a(int idx, char *buf)
95 im = find_by_index(idx); 96 im = find_by_index(idx);
96 if (im) 97 if (im)
97 return im->name; 98 return im->name;
98 snprintf(buf, 16, "if%d", idx); 99 //snprintf(buf, 16, "if%d", idx);
99 return buf; 100 //return buf;
101 return auto_string(xasprintf("if%d", idx));
100} 102}
101 103
102const char FAST_FUNC *ll_index_to_name(int idx) 104const char FAST_FUNC *ll_index_to_name(int idx)
103{ 105{
104 static char nbuf[16]; 106 //static char nbuf[16];
105 107 return ll_idx_n2a(idx/*, nbuf*/);
106 return ll_idx_n2a(idx, nbuf);
107} 108}
108 109
109#ifdef UNUSED 110#ifdef UNUSED