From 14f5c8d764ab7429367feb407ab86191054e6a8a Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Sat, 16 Apr 2005 19:39:00 +0000 Subject: Patch from Bernhard Fischer to make a bunch of symbols static which were otherwise cluttering the global namespace. --- networking/libiproute/ipaddress.c | 2 +- networking/libiproute/iptunnel.c | 4 ++-- networking/libiproute/ll_proto.c | 2 +- networking/libiproute/ll_types.c | 2 +- networking/libiproute/rt_names.c | 10 +++++----- 5 files changed, 10 insertions(+), 10 deletions(-) (limited to 'networking/libiproute') diff --git a/networking/libiproute/ipaddress.c b/networking/libiproute/ipaddress.c index 7e0c75785..da7a67bfe 100644 --- a/networking/libiproute/ipaddress.c +++ b/networking/libiproute/ipaddress.c @@ -48,7 +48,7 @@ static struct struct rtnl_handle *rth; } filter; -void print_link_flags(FILE *fp, unsigned flags, unsigned mdown) +static void print_link_flags(FILE *fp, unsigned flags, unsigned mdown) { fprintf(fp, "<"); flags &= ~IFF_RUNNING; diff --git a/networking/libiproute/iptunnel.c b/networking/libiproute/iptunnel.c index f8713e08b..85c6099ed 100644 --- a/networking/libiproute/iptunnel.c +++ b/networking/libiproute/iptunnel.c @@ -361,7 +361,7 @@ static int do_add(int cmd, int argc, char **argv) return -1; } -int do_del(int argc, char **argv) +static int do_del(int argc, char **argv) { struct ip_tunnel_parm p; @@ -381,7 +381,7 @@ int do_del(int argc, char **argv) return -1; } -void print_tunnel(struct ip_tunnel_parm *p) +static void print_tunnel(struct ip_tunnel_parm *p) { char s1[256]; char s2[256]; diff --git a/networking/libiproute/ll_proto.c b/networking/libiproute/ll_proto.c index 9b5260b32..104fbca25 100644 --- a/networking/libiproute/ll_proto.c +++ b/networking/libiproute/ll_proto.c @@ -90,7 +90,7 @@ __PF(ECONET,econet) #undef __PF -char * ll_proto_n2a(unsigned short id, char *buf, int len) +const char * ll_proto_n2a(unsigned short id, char *buf, int len) { int i; diff --git a/networking/libiproute/ll_types.c b/networking/libiproute/ll_types.c index f39f777e1..6b42426d5 100644 --- a/networking/libiproute/ll_types.c +++ b/networking/libiproute/ll_types.c @@ -13,7 +13,7 @@ #include -char * ll_type_n2a(int type, char *buf, int len) +const char * ll_type_n2a(int type, char *buf, int len) { #define __PF(f,n) { ARPHRD_##f, #n }, static struct { 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) rtnl_rtprot_tab, 256); } -char * rtnl_rtprot_n2a(int id, char *buf, int len) +const char * rtnl_rtprot_n2a(int id, char *buf, int len) { if (id<0 || id>=256) { snprintf(buf, len, "%d", id); @@ -143,7 +143,7 @@ static void rtnl_rtscope_initialize(void) rtnl_rtscope_tab, 256); } -char * rtnl_rtscope_n2a(int id, char *buf, int len) +const char * rtnl_rtscope_n2a(int id, char *buf, int len) { if (id<0 || id>=256) { snprintf(buf, len, "%d", id); @@ -206,7 +206,7 @@ static void rtnl_rtrealm_initialize(void) rtnl_rtrealm_tab, 256); } -char * rtnl_rtrealm_n2a(int id, char *buf, int len) +const char * rtnl_rtrealm_n2a(int id, char *buf, int len) { if (id<0 || id>=256) { snprintf(buf, len, "%d", id); @@ -272,7 +272,7 @@ static void rtnl_rttable_initialize(void) rtnl_rttable_tab, 256); } -char * rtnl_rttable_n2a(int id, char *buf, int len) +const char * rtnl_rttable_n2a(int id, char *buf, int len) { if (id<0 || id>=256) { snprintf(buf, len, "%d", id); @@ -334,7 +334,7 @@ static void rtnl_rtdsfield_initialize(void) rtnl_rtdsfield_tab, 256); } -char * rtnl_dsfield_n2a(int id, char *buf, int len) +const char * rtnl_dsfield_n2a(int id, char *buf, int len) { if (id<0 || id>=256) { snprintf(buf, len, "%d", id); -- cgit v1.2.3