diff options
author | Eric Andersen <andersen@codepoet.org> | 2005-04-16 19:39:00 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2005-04-16 19:39:00 +0000 |
commit | 14f5c8d764ab7429367feb407ab86191054e6a8a (patch) | |
tree | 2aa792b8a9d8f7af365c456f19f34a963236c26d /networking/libiproute | |
parent | a77b4f39708306d44058d7ca1683f448f51c5fce (diff) | |
download | busybox-w32-14f5c8d764ab7429367feb407ab86191054e6a8a.tar.gz busybox-w32-14f5c8d764ab7429367feb407ab86191054e6a8a.tar.bz2 busybox-w32-14f5c8d764ab7429367feb407ab86191054e6a8a.zip |
Patch from Bernhard Fischer to make a bunch of symbols static
which were otherwise cluttering the global namespace.
Diffstat (limited to 'networking/libiproute')
-rw-r--r-- | networking/libiproute/ipaddress.c | 2 | ||||
-rw-r--r-- | networking/libiproute/iptunnel.c | 4 | ||||
-rw-r--r-- | networking/libiproute/ll_proto.c | 2 | ||||
-rw-r--r-- | networking/libiproute/ll_types.c | 2 | ||||
-rw-r--r-- | networking/libiproute/rt_names.c | 10 |
5 files changed, 10 insertions, 10 deletions
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 | |||
48 | struct rtnl_handle *rth; | 48 | struct rtnl_handle *rth; |
49 | } filter; | 49 | } filter; |
50 | 50 | ||
51 | void print_link_flags(FILE *fp, unsigned flags, unsigned mdown) | 51 | static void print_link_flags(FILE *fp, unsigned flags, unsigned mdown) |
52 | { | 52 | { |
53 | fprintf(fp, "<"); | 53 | fprintf(fp, "<"); |
54 | flags &= ~IFF_RUNNING; | 54 | 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) | |||
361 | return -1; | 361 | return -1; |
362 | } | 362 | } |
363 | 363 | ||
364 | int do_del(int argc, char **argv) | 364 | static int do_del(int argc, char **argv) |
365 | { | 365 | { |
366 | struct ip_tunnel_parm p; | 366 | struct ip_tunnel_parm p; |
367 | 367 | ||
@@ -381,7 +381,7 @@ int do_del(int argc, char **argv) | |||
381 | return -1; | 381 | return -1; |
382 | } | 382 | } |
383 | 383 | ||
384 | void print_tunnel(struct ip_tunnel_parm *p) | 384 | static void print_tunnel(struct ip_tunnel_parm *p) |
385 | { | 385 | { |
386 | char s1[256]; | 386 | char s1[256]; |
387 | char s2[256]; | 387 | 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) | |||
90 | #undef __PF | 90 | #undef __PF |
91 | 91 | ||
92 | 92 | ||
93 | char * ll_proto_n2a(unsigned short id, char *buf, int len) | 93 | const char * ll_proto_n2a(unsigned short id, char *buf, int len) |
94 | { | 94 | { |
95 | int i; | 95 | int i; |
96 | 96 | ||
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 @@ | |||
13 | 13 | ||
14 | #include <linux/if_arp.h> | 14 | #include <linux/if_arp.h> |
15 | 15 | ||
16 | char * ll_type_n2a(int type, char *buf, int len) | 16 | const char * ll_type_n2a(int type, char *buf, int len) |
17 | { | 17 | { |
18 | #define __PF(f,n) { ARPHRD_##f, #n }, | 18 | #define __PF(f,n) { ARPHRD_##f, #n }, |
19 | static struct { | 19 | 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) | |||
76 | rtnl_rtprot_tab, 256); | 76 | rtnl_rtprot_tab, 256); |
77 | } | 77 | } |
78 | 78 | ||
79 | char * rtnl_rtprot_n2a(int id, char *buf, int len) | 79 | const 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 | ||
146 | char * rtnl_rtscope_n2a(int id, char *buf, int len) | 146 | const 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 | ||
209 | char * rtnl_rtrealm_n2a(int id, char *buf, int len) | 209 | const 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 | ||
275 | char * rtnl_rttable_n2a(int id, char *buf, int len) | 275 | const 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 | ||
337 | char * rtnl_dsfield_n2a(int id, char *buf, int len) | 337 | const 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); |