diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-06-19 11:10:02 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-06-19 11:10:02 +0000 |
commit | 1b16bdaebf7d0e543e048dfec9f34f06e983336c (patch) | |
tree | f2a121c80e2b34822a6bc5e44c5e17c42423d44b /include | |
parent | 91e149a3736ddc357950252c02d758515074447f (diff) | |
download | busybox-w32-1b16bdaebf7d0e543e048dfec9f34f06e983336c.tar.gz busybox-w32-1b16bdaebf7d0e543e048dfec9f34f06e983336c.tar.bz2 busybox-w32-1b16bdaebf7d0e543e048dfec9f34f06e983336c.zip |
networking/interface.c: reduce bss usage
function old new delta
.rodata 158918 158950 +32
display_interfaces 133 153 +20
UNSPEC_print 56 68 +12
pr_ether 59 65 +6
static.proc_read 4 1 -3
interface_opt_a 4 1 -3
in_ether 139 136 -3
ifconfig_main 1296 1293 -3
if_readlist_proc 686 680 -6
ife_print 1350 1338 -12
do_if_print 46 - -46
static.buff 369 264 -105
------------------------------------------------------------------------------
(add/remove: 0/1 grow/shrink: 4/7 up/down: 70/-181) Total: -111 bytes
# size busybox_old busybox_unstripped
text data bss dec hex filename
751073 3080 14800 768953 bbbb9 busybox_old
751073 3048 14688 768809 bbb29 busybox_unstripped
Diffstat (limited to 'include')
-rw-r--r-- | include/inet_common.h | 11 | ||||
-rw-r--r-- | include/libbb.h | 2 |
2 files changed, 7 insertions, 6 deletions
diff --git a/include/inet_common.h b/include/inet_common.h index bda621198..fa48fdffa 100644 --- a/include/inet_common.h +++ b/include/inet_common.h | |||
@@ -12,14 +12,15 @@ | |||
12 | /* hostfirst!=0 If we expect this to be a hostname, | 12 | /* hostfirst!=0 If we expect this to be a hostname, |
13 | try hostname database first | 13 | try hostname database first |
14 | */ | 14 | */ |
15 | extern int INET_resolve(const char *name, struct sockaddr_in *s_in, int hostfirst); | 15 | int INET_resolve(const char *name, struct sockaddr_in *s_in, int hostfirst); |
16 | 16 | ||
17 | /* numeric: & 0x8000: "default" instead of "*", | 17 | /* numeric: & 0x8000: "default" instead of "*", |
18 | * & 0x4000: host instead of net, | 18 | * & 0x4000: host instead of net, |
19 | * & 0x0fff: don't resolve | 19 | * & 0x0fff: don't resolve |
20 | */ | 20 | */ |
21 | extern int INET_rresolve(char *name, size_t len, struct sockaddr_in *s_in, | 21 | int INET_rresolve(char *name, size_t len, struct sockaddr_in *s_in, |
22 | int numeric, unsigned int netmask); | 22 | int numeric, unsigned int netmask); |
23 | 23 | ||
24 | extern int INET6_resolve(const char *name, struct sockaddr_in6 *sin6); | 24 | |
25 | extern int INET6_rresolve(char *name, size_t len, struct sockaddr_in6 *sin6, int numeric); | 25 | int INET6_resolve(const char *name, struct sockaddr_in6 *sin6); |
26 | int INET6_rresolve(char *name, size_t len, struct sockaddr_in6 *sin6, int numeric); | ||
diff --git a/include/libbb.h b/include/libbb.h index 3c9f9fe81..999caae0c 100644 --- a/include/libbb.h +++ b/include/libbb.h | |||
@@ -699,7 +699,7 @@ struct hwtype { | |||
699 | int (*activate) (int fd); | 699 | int (*activate) (int fd); |
700 | int suppress_null_addr; | 700 | int suppress_null_addr; |
701 | }; | 701 | }; |
702 | extern int interface_opt_a; | 702 | extern smallint interface_opt_a; |
703 | int display_interfaces(char *ifname); | 703 | int display_interfaces(char *ifname); |
704 | const struct aftype *get_aftype(const char *name); | 704 | const struct aftype *get_aftype(const char *name); |
705 | const struct hwtype *get_hwtype(const char *name); | 705 | const struct hwtype *get_hwtype(const char *name); |