aboutsummaryrefslogtreecommitdiff
path: root/networking/libiproute/rt_names.c
diff options
context:
space:
mode:
Diffstat (limited to 'networking/libiproute/rt_names.c')
-rw-r--r--networking/libiproute/rt_names.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/networking/libiproute/rt_names.c b/networking/libiproute/rt_names.c
index d503645b0..ff93c9e72 100644
--- a/networking/libiproute/rt_names.c
+++ b/networking/libiproute/rt_names.c
@@ -76,7 +76,7 @@ static void rtnl_rtprot_initialize(void)
76 rtnl_rtprot_tab, 256); 76 rtnl_rtprot_tab, 256);
77} 77}
78 78
79char * rtnl_rtprot_n2a(int id, char *buf, int len) 79const char * rtnl_rtprot_n2a(int id, char *buf, int len)
80{ 80{
81 if (id<0 || id>=256) { 81 if (id<0 || id>=256) {
82 snprintf(buf, len, "%d", id); 82 snprintf(buf, len, "%d", id);
@@ -143,7 +143,7 @@ static void rtnl_rtscope_initialize(void)
143 rtnl_rtscope_tab, 256); 143 rtnl_rtscope_tab, 256);
144} 144}
145 145
146char * rtnl_rtscope_n2a(int id, char *buf, int len) 146const char * rtnl_rtscope_n2a(int id, char *buf, int len)
147{ 147{
148 if (id<0 || id>=256) { 148 if (id<0 || id>=256) {
149 snprintf(buf, len, "%d", id); 149 snprintf(buf, len, "%d", id);
@@ -206,7 +206,7 @@ static void rtnl_rtrealm_initialize(void)
206 rtnl_rtrealm_tab, 256); 206 rtnl_rtrealm_tab, 256);
207} 207}
208 208
209char * rtnl_rtrealm_n2a(int id, char *buf, int len) 209const char * rtnl_rtrealm_n2a(int id, char *buf, int len)
210{ 210{
211 if (id<0 || id>=256) { 211 if (id<0 || id>=256) {
212 snprintf(buf, len, "%d", id); 212 snprintf(buf, len, "%d", id);
@@ -272,7 +272,7 @@ static void rtnl_rttable_initialize(void)
272 rtnl_rttable_tab, 256); 272 rtnl_rttable_tab, 256);
273} 273}
274 274
275char * rtnl_rttable_n2a(int id, char *buf, int len) 275const char * rtnl_rttable_n2a(int id, char *buf, int len)
276{ 276{
277 if (id<0 || id>=256) { 277 if (id<0 || id>=256) {
278 snprintf(buf, len, "%d", id); 278 snprintf(buf, len, "%d", id);
@@ -334,7 +334,7 @@ static void rtnl_rtdsfield_initialize(void)
334 rtnl_rtdsfield_tab, 256); 334 rtnl_rtdsfield_tab, 256);
335} 335}
336 336
337char * rtnl_dsfield_n2a(int id, char *buf, int len) 337const char * rtnl_dsfield_n2a(int id, char *buf, int len)
338{ 338{
339 if (id<0 || id>=256) { 339 if (id<0 || id>=256) {
340 snprintf(buf, len, "%d", id); 340 snprintf(buf, len, "%d", id);