diff options
author | Denis Vlasenko | 2007-01-29 23:43:52 +0000 |
---|---|---|
committer | Denis Vlasenko | 2007-01-29 23:43:52 +0000 |
commit | 322661d025626d7a92482fec232d29f4450dd4b0 (patch) | |
tree | 66dcf2c776adea8556d2ebac5e3f7d8a27f05074 /networking/libiproute | |
parent | 89ef65f02463b27313ff0eba806aa6e4aec10716 (diff) | |
download | busybox-322661d025626d7a92482fec232d29f4450dd4b0.zip busybox-322661d025626d7a92482fec232d29f4450dd4b0.tar.gz |
preparatory patch for -Wwrite-strings #6
Diffstat (limited to 'networking/libiproute')
-rw-r--r-- | networking/libiproute/ll_proto.c | 2 | ||||
-rw-r--r-- | networking/libiproute/rtm_map.c | 3 | ||||
-rw-r--r-- | networking/libiproute/rtm_map.h | 2 |
3 files changed, 3 insertions, 4 deletions
diff --git a/networking/libiproute/ll_proto.c b/networking/libiproute/ll_proto.c index 20f26ca..aad460b 100644 --- a/networking/libiproute/ll_proto.c +++ b/networking/libiproute/ll_proto.c @@ -24,7 +24,7 @@ #define __PF(f,n) { ETH_P_##f, #n }, static struct { int id; - char *name; + const char *name; } llproto_names[] = { __PF(LOOP,loop) __PF(PUP,pup) diff --git a/networking/libiproute/rtm_map.c b/networking/libiproute/rtm_map.c index 7eb4c71..c16406b 100644 --- a/networking/libiproute/rtm_map.c +++ b/networking/libiproute/rtm_map.c @@ -13,11 +13,10 @@ #include <stdlib.h> #include <string.h> - #include "rt_names.h" #include "utils.h" -char *rtnl_rtntype_n2a(int id, char *buf, int len) +const char *rtnl_rtntype_n2a(int id, char *buf, int len) { switch (id) { case RTN_UNSPEC: diff --git a/networking/libiproute/rtm_map.h b/networking/libiproute/rtm_map.h index b9c8c50..cbbcc21 100644 --- a/networking/libiproute/rtm_map.h +++ b/networking/libiproute/rtm_map.h @@ -2,7 +2,7 @@ #ifndef __RTM_MAP_H__ #define __RTM_MAP_H__ 1 -char *rtnl_rtntype_n2a(int id, char *buf, int len); +const char *rtnl_rtntype_n2a(int id, char *buf, int len); int rtnl_rtntype_a2n(int *id, char *arg); int get_rt_realms(uint32_t *realms, char *arg); |