aboutsummaryrefslogtreecommitdiff
path: root/networking/libiproute
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2007-01-29 23:43:52 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2007-01-29 23:43:52 +0000
commit322661d025626d7a92482fec232d29f4450dd4b0 (patch)
tree66dcf2c776adea8556d2ebac5e3f7d8a27f05074 /networking/libiproute
parent89ef65f02463b27313ff0eba806aa6e4aec10716 (diff)
downloadbusybox-w32-322661d025626d7a92482fec232d29f4450dd4b0.tar.gz
busybox-w32-322661d025626d7a92482fec232d29f4450dd4b0.tar.bz2
busybox-w32-322661d025626d7a92482fec232d29f4450dd4b0.zip
preparatory patch for -Wwrite-strings #6
Diffstat (limited to 'networking/libiproute')
-rw-r--r--networking/libiproute/ll_proto.c2
-rw-r--r--networking/libiproute/rtm_map.c3
-rw-r--r--networking/libiproute/rtm_map.h2
3 files changed, 3 insertions, 4 deletions
diff --git a/networking/libiproute/ll_proto.c b/networking/libiproute/ll_proto.c
index 20f26ca3f..aad460b5f 100644
--- a/networking/libiproute/ll_proto.c
+++ b/networking/libiproute/ll_proto.c
@@ -24,7 +24,7 @@
24#define __PF(f,n) { ETH_P_##f, #n }, 24#define __PF(f,n) { ETH_P_##f, #n },
25static struct { 25static struct {
26 int id; 26 int id;
27 char *name; 27 const char *name;
28} llproto_names[] = { 28} llproto_names[] = {
29__PF(LOOP,loop) 29__PF(LOOP,loop)
30__PF(PUP,pup) 30__PF(PUP,pup)
diff --git a/networking/libiproute/rtm_map.c b/networking/libiproute/rtm_map.c
index 7eb4c7122..c16406b8b 100644
--- a/networking/libiproute/rtm_map.c
+++ b/networking/libiproute/rtm_map.c
@@ -13,11 +13,10 @@
13 13
14#include <stdlib.h> 14#include <stdlib.h>
15#include <string.h> 15#include <string.h>
16
17#include "rt_names.h" 16#include "rt_names.h"
18#include "utils.h" 17#include "utils.h"
19 18
20char *rtnl_rtntype_n2a(int id, char *buf, int len) 19const char *rtnl_rtntype_n2a(int id, char *buf, int len)
21{ 20{
22 switch (id) { 21 switch (id) {
23 case RTN_UNSPEC: 22 case RTN_UNSPEC:
diff --git a/networking/libiproute/rtm_map.h b/networking/libiproute/rtm_map.h
index b9c8c503f..cbbcc214d 100644
--- a/networking/libiproute/rtm_map.h
+++ b/networking/libiproute/rtm_map.h
@@ -2,7 +2,7 @@
2#ifndef __RTM_MAP_H__ 2#ifndef __RTM_MAP_H__
3#define __RTM_MAP_H__ 1 3#define __RTM_MAP_H__ 1
4 4
5char *rtnl_rtntype_n2a(int id, char *buf, int len); 5const char *rtnl_rtntype_n2a(int id, char *buf, int len);
6int rtnl_rtntype_a2n(int *id, char *arg); 6int rtnl_rtntype_a2n(int *id, char *arg);
7 7
8int get_rt_realms(uint32_t *realms, char *arg); 8int get_rt_realms(uint32_t *realms, char *arg);